mirror of
https://github.com/UberGames/RPG-X2.git
synced 2024-11-25 13:51:03 +00:00
Continued work on client lua support
This commit is contained in:
parent
0c24562b07
commit
b45d86b603
3 changed files with 19 additions and 0 deletions
|
@ -4,6 +4,12 @@
|
|||
|
||||
#ifdef G_LUA
|
||||
|
||||
#if defined(__linux__) || defined(__WIN32__) || defined(__APPLE__) || 1 /* linux, mingw32, OS X - the 1 is temporary*/
|
||||
#include <dirent.h> /* Note the MSVC project assumes mingw is installed at C:\MinGW\include */
|
||||
#else // MSVC
|
||||
// TODO: I don't care much about MSVC as I user mingw on Windows to compile :P
|
||||
#endif
|
||||
|
||||
lvm_t *lVM[NUM_VMS];
|
||||
fileHandle_t lualog;
|
||||
|
||||
|
@ -99,9 +105,21 @@ qboolean LoadLuaFile(char *path, int num_vm)
|
|||
|
||||
qboolean CG_LuaInit()
|
||||
{
|
||||
#if defined(__linux__) || defined(__WIN32__) || defined(__APPLE__) || 1 /* linux, mingw32, OS X - the 1 is temporary*/
|
||||
DIR *pdir = NULL;
|
||||
struct dirent *pent = NULL;
|
||||
#else // MSVC
|
||||
|
||||
#endif
|
||||
|
||||
CG_Printf("------- CG_LuaInit -------\n");
|
||||
|
||||
#if defined(__linux__) || defined(__WIN32__) || defined(__APPLE__) || 1 /* linux, mingw32, OS X - the 1 is temporary*/
|
||||
|
||||
#else // MSVC
|
||||
|
||||
#endif
|
||||
|
||||
// not much to do for now
|
||||
if(cg_logLua.integer) {
|
||||
trap_FS_FOpenFile("./cg_lua.log", &lualog, FS_APPEND);
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
<CodeAnalysisRuleSet Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">AllRules.ruleset</CodeAnalysisRuleSet>
|
||||
<CodeAnalysisRules Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<CodeAnalysisRuleAssemblies Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<IncludePath Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">C:\MinGW\include;$(IncludePath)</IncludePath>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Midl>
|
||||
|
|
BIN
stefgame.suo
BIN
stefgame.suo
Binary file not shown.
Loading…
Reference in a new issue