mirror of
https://github.com/edubart/otclient.git
synced 2025-10-17 13:03:27 +02:00
Implement rule violations, closes #218
This commit is contained in:
@@ -13,7 +13,12 @@ end
|
||||
function reloadScripts()
|
||||
g_textures.clearTexturesCache()
|
||||
g_modules.reloadModules()
|
||||
dofile('/' .. g_app.getCompactName() .. 'rc')
|
||||
|
||||
local script = '/' .. g_app.getCompactName() .. 'rc'
|
||||
if g_resources.fileExists(script) then
|
||||
dofile(script)
|
||||
end
|
||||
|
||||
local message = tr('All modules and scripts were reloaded.')
|
||||
|
||||
modules.game_textmessage.displayGameMessage(message)
|
||||
|
Reference in New Issue
Block a user