mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 04:01:03 +00:00
GRIM: Make lua Print(Error|Warning) use consistent debug channels.
This commit is contained in:
parent
afbb526691
commit
e9ba4fe99c
@ -79,7 +79,7 @@ void Lua_V1::PrintDebug() {
|
||||
}
|
||||
|
||||
void Lua_V1::PrintError() {
|
||||
if (Debug::isChannelEnabled(Debug::Scripts | Debug::Info)) {
|
||||
if (Debug::isChannelEnabled(Debug::Scripts | Debug::Error)) {
|
||||
Common::String msg("Error: ");
|
||||
lua_Object strObj = lua_getparam(1);
|
||||
if (lua_isnil(strObj))
|
||||
@ -92,7 +92,7 @@ void Lua_V1::PrintError() {
|
||||
}
|
||||
|
||||
void Lua_V1::PrintWarning() {
|
||||
if (Debug::isChannelEnabled(Debug::Scripts | Debug::Info)) {
|
||||
if (Debug::isChannelEnabled(Debug::Scripts | Debug::Warning)) {
|
||||
Common::String msg("Warning: ");
|
||||
lua_Object strObj = lua_getparam(1);
|
||||
if (lua_isnil(strObj))
|
||||
|
Loading…
x
Reference in New Issue
Block a user