# HG changeset patch # User Ritor1 # Date 1385106857 -21600 # Node ID 6971834a0d815213e5f79dfd1c073edcd8400b64 # Parent a453996ed5ac2ea4628d71bda44ce64e5c2c32aa Add Log::Warning diff -r a453996ed5ac -r 6971834a0d81 mm7_2.cpp --- a/mm7_2.cpp Thu Nov 21 14:08:35 2013 +0200 +++ b/mm7_2.cpp Fri Nov 22 13:54:17 2013 +0600 @@ -4327,18 +4327,18 @@ lua_State *L = luaL_newstate(); if ( L == NULL ) - printf ( "Error creating Lua context.\n" ); + Log::Warning(L"Error creating Lua context.\n"); luaL_openlibs(L); if ( luaL_dofile(L,GetScriptFileLocation("script.lua"))) - printf ( "Error opening script.lua\n" ); + Log::Warning(L"Error opening script.lua\n"); luaopen_test(L); // load the wrappered module if (luaL_dofile(L,GetScriptFileLocation("test.lua"))) - printf("unable to load file\n"); + Log::Warning(L"unable to load file test.lua\n"); luaopen_UIControl(L); // load the wrappered module if (luaL_dofile(L,GetScriptFileLocation("UIControl.lua"))) - printf("unable to load file\n"); + Log::Warning(L"unable to load file UIControl.lua\n"); //lua_close(l); bool bNoMargareth = false;