diff options
Diffstat (limited to 'Runtime/Scripting/IO/IO.bind.cpp')
-rw-r--r-- | Runtime/Scripting/IO/IO.bind.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Runtime/Scripting/IO/IO.bind.cpp b/Runtime/Scripting/IO/IO.bind.cpp index a46b110..f9530a2 100644 --- a/Runtime/Scripting/IO/IO.bind.cpp +++ b/Runtime/Scripting/IO/IO.bind.cpp @@ -62,7 +62,7 @@ int ReadFile(lua_State* L) std::ifstream file = ifstream(path, openMode); if (!file.is_open()) { - log_error(string("Can't read file. ") + path); + log_error("Can't read file. %s", path); state.PushNil(); return 1; } @@ -72,7 +72,7 @@ int ReadFile(lua_State* L) size = file.tellg() - size; if (size == 0) { - log_error(string("File is Empty. ") + path); + log_error("File is Empty. %s", path); state.PushNil(); return 1; } @@ -106,7 +106,7 @@ static luaL_Reg ioFuncs[] = { int luaopen_GameLab_IO(lua_State* L) { - log_info("Scripting", "luaopen_GameLab_IO()"); + log_info_tag("Scripting", "luaopen_GameLab_IO()"); LUA_BIND_STATE(L); |