diff options
Diffstat (limited to 'src/lua/modules')
-rw-r--r-- | src/lua/modules/graphics/je_lua_graphics.cpp | 4 | ||||
-rw-r--r-- | src/lua/modules/mouse/je_lua_mouse.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lua/modules/graphics/je_lua_graphics.cpp b/src/lua/modules/graphics/je_lua_graphics.cpp index a2157b6..6324e00 100644 --- a/src/lua/modules/graphics/je_lua_graphics.cpp +++ b/src/lua/modules/graphics/je_lua_graphics.cpp @@ -196,7 +196,7 @@ namespace JinEngine AssetDatabase* fs = AssetDatabase::get(); if (!fs->exists(path)) { - error(L, "No such shader file \"%s\"\n", path); + error(L, "No such shader file \"%s\"", path); luax_pushnil(L); return 1; } @@ -623,7 +623,7 @@ namespace JinEngine AssetDatabase* fs = AssetDatabase::get(); if (!fs->exists(path)) { - error(L, "No such font %s\n", path); + error(L, "No such font \"%s\"", path); luax_pushnil(L); return 1; } diff --git a/src/lua/modules/mouse/je_lua_mouse.cpp b/src/lua/modules/mouse/je_lua_mouse.cpp index 88638d2..d6c84e7 100644 --- a/src/lua/modules/mouse/je_lua_mouse.cpp +++ b/src/lua/modules/mouse/je_lua_mouse.cpp @@ -28,9 +28,9 @@ namespace JinEngine } LUA_IMPLEMENT const luaL_Reg f[] = { - { "position", l_pos }, - { "setVisible", l_setVisible }, - { 0, 0 } + { "getPosition", l_pos }, + { "setVisible", l_setVisible }, + { 0, 0 } }; LUA_EXPORT int luaopen_mouse(lua_State* L) |