diff options
Diffstat (limited to 'Runtime/Scripting/Path.bind.cpp')
-rw-r--r-- | Runtime/Scripting/Path.bind.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/Runtime/Scripting/Path.bind.cpp b/Runtime/Scripting/Path.bind.cpp deleted file mode 100644 index 920f586..0000000 --- a/Runtime/Scripting/Path.bind.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "Runtime/Lua/LuaBind/LuaBind.h"
-
-#ifdef GAMELAB_WIN
-#include <windows.h> -#endif
-
-using namespace LuaBind;
-
-static int GetRootDirectory(lua_State* L)
-{
-#ifdef GAMELAB_WIN
- char path[MAX_PATH]; - GetCurrentDirectory(MAX_PATH, path); - lua_pushstring(L, path);
- return 1;
-#else
- return 0;
-#endif
-}
-
-int luaopen_GameLab_Path(lua_State* L)
-{
- LUA_BIND_STATE(L);
-
- state.PushGlobalNamespace();
- state.PushNamespace("GameLab");
- state.PushNamespace("Path");
-
- state.RegisterMethod("GetRootDirectory", GetRootDirectory);
-
- return 1;
-}
|