Script: Fixed ScriptFile with Unicode path and tweaks

This commit is contained in:
Birunthan Mohanathas
2012-10-06 21:43:07 +03:00
parent d449e5dac6
commit a4844ca924
4 changed files with 89 additions and 65 deletions

View File

@ -24,10 +24,13 @@
class LuaScript
{
public:
LuaScript(const char* file);
LuaScript();
~LuaScript();
bool IsInitialized() { return m_Initialized; }
bool Initialize(const WCHAR* scriptFile);
void Uninitialize();
bool IsInitialized() { return m_Ref != LUA_NOREF; }
int GetRef() { return m_Ref; }
bool IsFunction(const char* funcName);
@ -37,7 +40,6 @@ public:
protected:
int m_Ref;
bool m_Initialized;
};
#endif