mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 14:33:26 +02:00
Refactor modules, closes #223
* All modules are sandboxed now * All images,sounds,fonts,translations and styles were moved to "data" folder * Reorganize image files folders * Remove unmaintained modules: client_particles, client_shaders * Implement new automatic way to load styles and fonts * Add hide/show offline option in VipList * Add invite/exclude to/from private channel in players menus * Many other minor changes
This commit is contained in:
9
init.lua
9
init.lua
@@ -7,6 +7,11 @@ g_logger.setLogFile(g_resources.getWorkDir() .. g_app.getCompactName() .. ".log"
|
||||
-- print first terminal message
|
||||
g_logger.info(g_app.getName() .. ' ' .. g_app.getVersion() .. ' rev ' .. g_app.getBuildRevision() .. ' (' .. g_app.getBuildCommit() .. ') built on ' .. g_app.getBuildDate() .. ' for arch ' .. g_app.getBuildArch())
|
||||
|
||||
-- add data directory to the search path
|
||||
if not g_resources.addSearchPath(g_resources.getWorkDir() .. "data", true) then
|
||||
g_logger.fatal("Unable to add data directory to the search path.")
|
||||
end
|
||||
|
||||
-- add modules directory to the search path
|
||||
if not g_resources.addSearchPath(g_resources.getWorkDir() .. "modules", true) then
|
||||
g_logger.fatal("Unable to add modules directory to the search path.")
|
||||
@@ -42,7 +47,7 @@ g_modules.ensureModuleLoaded("game_interface")
|
||||
-- mods 1000-9999
|
||||
g_modules.autoLoadModules(9999)
|
||||
|
||||
if g_resources.fileExists("/otclientrc.lua") then
|
||||
dofile("/otclientrc.lua")
|
||||
if g_resources.fileExists("/otclientrc") then
|
||||
dofile("/otclientrc")
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user