diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-06 18:28:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-06 18:28:58 +0300 |
commit | c79af51bea401a358764791b0e2e1d7c75a4adc1 (patch) | |
tree | 2c1ba06b80e2822fb21d19b20e9ddc02cc595a41 /src/resources | |
parent | f55d6f7c27db71b7327d4de4ee294bcaf7b82f6b (diff) | |
download | manaverse-c79af51bea401a358764791b0e2e1d7c75a4adc1.tar.gz manaverse-c79af51bea401a358764791b0e2e1d7c75a4adc1.tar.bz2 manaverse-c79af51bea401a358764791b0e2e1d7c75a4adc1.tar.xz manaverse-c79af51bea401a358764791b0e2e1d7c75a4adc1.zip |
add patch files loading for most dbs.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/db/avatardb.cpp | 1 | ||||
-rw-r--r-- | src/resources/db/colordb.cpp | 4 | ||||
-rw-r--r-- | src/resources/db/deaddb.cpp | 1 | ||||
-rw-r--r-- | src/resources/db/emotedb.cpp | 1 | ||||
-rw-r--r-- | src/resources/db/mapdb.cpp | 1 | ||||
-rw-r--r-- | src/resources/db/petdb.cpp | 1 | ||||
-rw-r--r-- | src/resources/db/sounddb.cpp | 1 |
7 files changed, 10 insertions, 0 deletions
diff --git a/src/resources/db/avatardb.cpp b/src/resources/db/avatardb.cpp index 100803a2a..92f590cf7 100644 --- a/src/resources/db/avatardb.cpp +++ b/src/resources/db/avatardb.cpp @@ -44,6 +44,7 @@ void AvatarDB::load() if (mLoaded) unload(); loadXmlFile(paths.getStringValue("avatarsFile")); + loadXmlFile(paths.getStringValue("avatarsPatchFile")); } void AvatarDB::loadXmlFile(const std::string &fileName) diff --git a/src/resources/db/colordb.cpp b/src/resources/db/colordb.cpp index d94ac8bce..276b7e77a 100644 --- a/src/resources/db/colordb.cpp +++ b/src/resources/db/colordb.cpp @@ -48,10 +48,14 @@ void ColorDB::load() if (it != mColorLists.end()) colors = it->second; loadHair(paths.getStringValue("hairColorFile"), colors); + loadHair(paths.getStringValue("hairColorPatchFile"), colors); mColorLists["hair"] = colors; if (serverVersion >= 1) + { loadColorLists(paths.getStringValue("itemColorsFile")); + loadColorLists(paths.getStringValue("itemColorsPatchFile")); + } it = mColorLists.find("hair"); if (it != mColorLists.end()) diff --git a/src/resources/db/deaddb.cpp b/src/resources/db/deaddb.cpp index be7c9cade..6bf5c4719 100644 --- a/src/resources/db/deaddb.cpp +++ b/src/resources/db/deaddb.cpp @@ -36,6 +36,7 @@ namespace void DeadDB::load() { loadXmlFile(paths.getStringValue("deadMessagesFile")); + loadXmlFile(paths.getStringValue("deadMessagesPatchFile")); } void DeadDB::loadXmlFile(const std::string &fileName) diff --git a/src/resources/db/emotedb.cpp b/src/resources/db/emotedb.cpp index 3086ff4c5..eee6ec388 100644 --- a/src/resources/db/emotedb.cpp +++ b/src/resources/db/emotedb.cpp @@ -53,6 +53,7 @@ void EmoteDB::load() mLastEmote = 0; loadXmlFile(paths.getStringValue("emotesFile")); + loadXmlFile(paths.getStringValue("emotesPatchFile")); loadSpecialXmlFile("graphics/sprites/manaplus_emotes.xml"); mLoaded = true; diff --git a/src/resources/db/mapdb.cpp b/src/resources/db/mapdb.cpp index 13f671ff4..2ff5d1fee 100644 --- a/src/resources/db/mapdb.cpp +++ b/src/resources/db/mapdb.cpp @@ -47,6 +47,7 @@ void MapDB::load() loadRemap(); loadInfo(paths.getStringValue("mapsFile")); + loadInfo(paths.getStringValue("mapsPatchFile")); mLoaded = true; } diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp index 7dcfd63e3..1d8e22d51 100644 --- a/src/resources/db/petdb.cpp +++ b/src/resources/db/petdb.cpp @@ -48,6 +48,7 @@ void PETDB::load() logger->log1("Initializing PET database..."); loadXmlFile(paths.getStringValue("petsFile")); + loadXmlFile(paths.getStringValue("petsPatchFile")); mLoaded = true; } diff --git a/src/resources/db/sounddb.cpp b/src/resources/db/sounddb.cpp index ca7d0d654..a179eb2ff 100644 --- a/src/resources/db/sounddb.cpp +++ b/src/resources/db/sounddb.cpp @@ -38,6 +38,7 @@ void SoundDB::load() { unload(); loadXmlFile(paths.getStringValue("soundsFile")); + loadXmlFile(paths.getStringValue("soundsPatchFile")); } void SoundDB::loadXmlFile(const std::string &fileName) |