mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
fix this path todos
This commit is contained in:
parent
ef9e39d1c7
commit
8027e1e08c
2 changed files with 8 additions and 7 deletions
|
@ -76,9 +76,10 @@ elseif INIT == "async_game" then
|
|||
dofile(asyncpath .. "game.lua")
|
||||
elseif INIT == "client" then
|
||||
dofile(scriptdir .. "client" .. DIR_DELIM .. "init.lua")
|
||||
elseif INIT == "sscsm" then
|
||||
-- FIXME: different branch for sscsm_server
|
||||
elseif INIT == "sscsm" and core.get_current_modname() == "*client_builtin*" then
|
||||
dofile(scriptdir .. "sscsm_client" .. DIR_DELIM .. "init.lua")
|
||||
elseif INIT == "sscsm" and core.get_current_modname() == "*server_builtin*" then
|
||||
dofile(scriptdir .. "sscsm_server" .. DIR_DELIM .. "init.lua")
|
||||
elseif INIT == "emerge" then
|
||||
dofile(scriptdir .. "emerge" .. DIR_DELIM .. "init.lua")
|
||||
elseif INIT == "pause_menu" then
|
||||
|
|
|
@ -20,11 +20,11 @@ class SSCSMEnvironment : public Thread
|
|||
{
|
||||
std::shared_ptr<StupidChannel> m_channel;
|
||||
std::unique_ptr<SSCSMScripting> m_script;
|
||||
// virtual file system.
|
||||
// TODO: decide and doc how paths look like, maybe:
|
||||
// /client_builtin/subdir/foo.lua
|
||||
// /server_builtin/subdir/foo.lua
|
||||
// /mods/modname/subdir/foo.lua
|
||||
// the virtual file system.
|
||||
// paths look like this:
|
||||
// *client_builtin*:subdir/foo.lua
|
||||
// *server_builtin*:subdir/foo.lua
|
||||
// modname:subdir/foo.lua
|
||||
std::unique_ptr<ModVFS> m_vfs;
|
||||
|
||||
void *run() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue