diff options
author | chai <chaifix@163.com> | 2021-11-01 12:10:29 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-01 12:10:29 +0800 |
commit | 44d6c41e5e586572de08c72c358aed9100a30353 (patch) | |
tree | a3dee8cbb9f7181c88464b31f231a264c570acd4 /Runtime/Scripting/IO | |
parent | 78417f6cdedfcf60c8ca437190975644e942e01f (diff) |
*log
Diffstat (limited to 'Runtime/Scripting/IO')
-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); |