From d033400614e7e2c0ff49e5100c81e937e5818e74 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 28 Jul 2018 13:47:51 +0800 Subject: *update --- src/lua/core/luaopen_core.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/lua/core') diff --git a/src/lua/core/luaopen_core.cpp b/src/lua/core/luaopen_core.cpp index 0e79ff5..d20a3bc 100644 --- a/src/lua/core/luaopen_core.cpp +++ b/src/lua/core/luaopen_core.cpp @@ -15,22 +15,22 @@ namespace lua return 1; } - static int l_quit(lua_State* L) + static int l_stop(lua_State* L) { - Game::get()->quit(); + Game::get()->stop(); return 0; } - static int l_exit(lua_State* L) + static int l_quit(lua_State* L) { - Game::get()->exit(); + Game::get()->quit(); return 0; } - + static const luaL_Reg f[] = { {"running", l_running}, - {"quit", l_quit}, // for end game loop - {"exit", l_exit}, // for exit whole game + {"stop", l_stop}, // for end game loop + {"quit", l_quit}, // for exit whole game {0, 0} }; -- cgit v1.1-26-g67d0