Mercurial > mm7
changeset 2039:6971834a0d81
Add Log::Warning
author | Ritor1 |
---|---|
date | Fri, 22 Nov 2013 13:54:17 +0600 |
parents | a453996ed5ac |
children | 98a727563cc3 |
files | mm7_2.cpp |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;