File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Client/mods/deathmatch/logic/luadefs Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 9
9
*
10
10
*****************************************************************************/
11
11
12
+
12
13
#include " StdInc.h"
13
14
#include " CLuaDefs.h"
14
15
#include " lua/CLuaFunctionParser.h"
15
16
17
+ #include < SharedUtil.SysInfo.h>
18
+ #include < SharedUtil.SysInfo.hpp>
19
+
16
20
#define MIN_CLIENT_REQ_DXSETRENDERTARGET_CALL_RESTRICTIONS " 1.3.0-9.04431"
17
21
extern bool g_bAllowAspectRatioAdjustment;
18
22
@@ -1705,6 +1709,11 @@ int CLuaDrawingDefs::DxGetStatus(lua_State* luaVM)
1705
1709
lua_pushstring (luaVM, " SettingHighDetailPeds" );
1706
1710
lua_pushboolean (luaVM, dxStatus.settings .bHighDetailPeds );
1707
1711
lua_settable (luaVM, -3 );
1712
+
1713
+ lua_pushstring (luaVM, " TotalPhysicalMemory" );
1714
+ lua_pushnumber (luaVM, static_cast <lua_Number>(SharedUtil::GetWMITotalPhysicalMemory ()) / 1024.0 / 1024.0 );
1715
+ lua_settable (luaVM, -3 );
1716
+
1708
1717
return 1 ;
1709
1718
}
1710
1719
else
You can’t perform that action at this time.
0 commit comments