diff options
Diffstat (limited to 'src/jin/main.cpp')
-rw-r--r-- | src/jin/main.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/jin/main.cpp b/src/jin/main.cpp index 0a37b32..91a4e7c 100644 --- a/src/jin/main.cpp +++ b/src/jin/main.cpp @@ -3,7 +3,6 @@ #ifdef _WIN32 #include <Windows.h> - #include <direct.h> #include <shlobj.h> #include <wchar.h> #endif @@ -14,22 +13,13 @@ using namespace std; using namespace JinEngine::Filesystem; -// Load game under cwd. static void load(const char* cwd) { - // Main thread lua runtime. + // Main thread lua state. lua_State* L = luax_newstate(); - - // Open lua standard module. luax_openlibs(L); - - // Open jin module. JinEngine::Lua::open(L); - - // Boot jin and run it. JinEngine::Lua::boot(L, cwd); - - // Close lua lib. luax_close(L); } @@ -45,7 +35,7 @@ std::string wstrtostr(const std::wstring &wstr) delete[] szTo; return strTo; } -#endif +#endif bool BrowseFolder(string& cwd) { |