mirror of
https://github.com/edubart/otclient.git
synced 2025-10-21 23:05:54 +02:00
Rename 'addons' folder to 'mods' to avoid
Use onRun event to play startup music
This commit is contained in:
6
init.lua
6
init.lua
@@ -15,8 +15,8 @@ if not g_resources.addSearchPath(g_resources.getWorkDir() .. "modules", true) th
|
||||
g_logger.fatal("Unable to add modules directory to the search path.")
|
||||
end
|
||||
|
||||
-- try to add addons path too
|
||||
g_resources.addSearchPath(g_resources.getWorkDir() .. "addons", true)
|
||||
-- try to add mods path too
|
||||
g_resources.addSearchPath(g_resources.getWorkDir() .. "mods", true)
|
||||
|
||||
-- setup directory for saving configurations
|
||||
g_resources.setupUserWriteDir(g_app.getCompactName())
|
||||
@@ -41,7 +41,7 @@ g_modules.ensureModuleLoaded("client")
|
||||
g_modules.autoLoadModules(999)
|
||||
g_modules.ensureModuleLoaded("game")
|
||||
|
||||
-- addons 1000-9999
|
||||
-- mods 1000-9999
|
||||
g_modules.autoLoadModules(9999)
|
||||
|
||||
if g_resources.fileExists("/otclientrc.lua") then
|
||||
|
Reference in New Issue
Block a user