mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Script: Additional change to f8c3867
for print()
This commit is contained in:
parent
bbb101cbd5
commit
d0466c5588
@ -34,6 +34,8 @@ public:
|
||||
|
||||
static lua_State* GetState(bool unicode) { c_UnicodeState = unicode; return c_State; }
|
||||
|
||||
static bool IsUnicodeState() { return c_UnicodeState; }
|
||||
|
||||
static void ReportErrors(const std::wstring& file);
|
||||
|
||||
static void PushWide(const WCHAR* str);
|
||||
|
@ -54,7 +54,8 @@ static int Print(lua_State* L)
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
|
||||
LogDebug(StringUtil::Widen(message).c_str());
|
||||
LogDebug(LuaManager::IsUnicodeState() ?
|
||||
StringUtil::WidenUTF8(message).c_str() : StringUtil::Widen(message).c_str());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user