mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 10:45:33 +00:00
Console command reloadlua
also reloads l10n used by Lua scripts
This commit is contained in:
parent
aac32f2de5
commit
1240b60a24
2 changed files with 2 additions and 0 deletions
|
@ -503,6 +503,7 @@ namespace MWLua
|
|||
MWBase::Environment::get().getWindowManager()->setConsoleMode("");
|
||||
mUiResourceManager.clear();
|
||||
mLua.dropScriptCache();
|
||||
mL10n.clear();
|
||||
initConfiguration();
|
||||
|
||||
{ // Reload global scripts
|
||||
|
|
|
@ -13,6 +13,7 @@ namespace LuaUtil
|
|||
public:
|
||||
L10nManager(const VFS::Manager* vfs, LuaState* lua) : mVFS(vfs), mLua(lua) {}
|
||||
void init();
|
||||
void clear() { mContexts.clear(); }
|
||||
|
||||
void setPreferredLocales(const std::vector<std::string>& locales);
|
||||
const std::vector<icu::Locale>& getPreferredLocales() const { return mPreferredLocales; }
|
||||
|
|
Loading…
Reference in a new issue