summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-09 22:18:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-09 22:57:42 +0300
commit923633ae61b255c64dee9cf011382086453286d8 (patch)
treed8851d3b80df477854c2293e3cbea2a026b079ad /src/client.cpp
parente0baa7398ca03060e5fe11c7647ae80ae258beeb (diff)
downloadmv-923633ae61b255c64dee9cf011382086453286d8.tar.gz
mv-923633ae61b255c64dee9cf011382086453286d8.tar.bz2
mv-923633ae61b255c64dee9cf011382086453286d8.tar.xz
mv-923633ae61b255c64dee9cf011382086453286d8.zip
add mods loading based on settings.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 443c156fb..649c1f08c 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1176,6 +1176,10 @@ int Client::gameExec()
Net::getPartyHandler()->clear();
if (chatLogger)
chatLogger->clear();
+ if (mOptions.dataPath.empty())
+ UpdaterWindow::unloadMods(mOldUpdates);
+ else
+ UpdaterWindow::unloadMods(mOptions.dataPath);
}
mOldState = mState;
@@ -1372,6 +1376,7 @@ int Client::gameExec()
{
mState = STATE_LOAD_DATA;
mOldUpdates = "";
+ UpdaterWindow::loadDirMods(mOptions.dataPath);
}
else if (loginData.updateType & LoginData::Upd_Skip)
{
@@ -1456,7 +1461,7 @@ int Client::gameExec()
NPCDB::load();
PETDB::load();
EmoteDB::load();
- ModDB::load();
+// ModDB::load();
StatusEffect::load();
Units::loadUnits();