mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
[CSM] Don't load the IO library. (#6087)
* [CSM] Don't load the IO library. * Rename the function to match the Lua API function name and add a missing `const` * Add a comment to explain some strange code and fix the other issues pointed out by shadowninja.
This commit is contained in:
parent
e7396a0c50
commit
30821ad8de
6 changed files with 54 additions and 16 deletions
|
@ -33,10 +33,10 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "lua_api/l_localplayer.h"
|
||||
#include "lua_api/l_camera.h"
|
||||
|
||||
ClientScripting::ClientScripting(Client *client)
|
||||
ClientScripting::ClientScripting(Client *client):
|
||||
ScriptApiBase(ScriptingType::Client)
|
||||
{
|
||||
setGameDef(client);
|
||||
setType(ScriptingType::Client);
|
||||
|
||||
SCRIPTAPI_PRECHECKHEADER
|
||||
|
||||
|
@ -59,9 +59,6 @@ ClientScripting::ClientScripting(Client *client)
|
|||
lua_pushstring(L, "client");
|
||||
lua_setglobal(L, "INIT");
|
||||
|
||||
lua_pushstring(L, "/");
|
||||
lua_setglobal(L, "DIR_DELIM");
|
||||
|
||||
infostream << "SCRIPTAPI: Initialized client game modules" << std::endl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue