- Fixed that r716 (precompiled header) doesn't work on x64.

- Now uses constructor initialization list in each class.
- TintedImage: Code cleanup.
This commit is contained in:
spx
2011-01-29 00:11:01 +00:00
parent fdae154245
commit 7ea3a762ac
35 changed files with 423 additions and 445 deletions

View File

@ -3,14 +3,10 @@
#include "LuaManager.h"
#include "../Rainmeter.h"
LuaScript::LuaScript(lua_State* p_pState, const char* p_strFile, const char* p_strTableName) :
m_pState(p_pState)
LuaScript::LuaScript(lua_State* p_pState, const char* p_strFile, const char* p_strTableName) : m_pState(p_pState), m_strTableName(_strdup(p_strTableName)),
m_bInitialized(true)
{
m_bInitialized = true;
int result = luaL_loadfile(m_pState, p_strFile);
m_strTableName = _strdup(p_strTableName);
// If the file loaded okay.
if(result == 0)