diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-13 21:57:12 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-13 21:57:12 +0300 |
commit | db1d3323103f15c3d31378b9e94982191855d984 (patch) | |
tree | 85c0aa4c738fceb135d5fe954a7512d22fff1c9f /src/resources/db/networkdb.cpp | |
parent | 331d1d0989acccf5247d34561d0c962f7a64adc2 (diff) | |
download | manaplus-db1d3323103f15c3d31378b9e94982191855d984.tar.gz manaplus-db1d3323103f15c3d31378b9e94982191855d984.tar.bz2 manaplus-db1d3323103f15c3d31378b9e94982191855d984.tar.xz manaplus-db1d3323103f15c3d31378b9e94982191855d984.zip |
Add fake packets from network.xml if packet unused.
Diffstat (limited to 'src/resources/db/networkdb.cpp')
-rw-r--r-- | src/resources/db/networkdb.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/db/networkdb.cpp b/src/resources/db/networkdb.cpp index afab56af3..c430d0f7a 100644 --- a/src/resources/db/networkdb.cpp +++ b/src/resources/db/networkdb.cpp @@ -21,6 +21,7 @@ #include "resources/db/networkdb.h" #include "configuration.h" +#include "logger.h" #include "utils/xmlutils.h" @@ -39,6 +40,7 @@ void NetworkDb::load() if (mLoaded) unload(); + logger->log1("Initializing network database..."); loadXmlFile(paths.getStringValue("networkFile"), SkipError_false); loadXmlFile(paths.getStringValue("networkPatchFile"), SkipError_true); loadXmlDir("networkPatchDir", loadXmlFile); @@ -63,3 +65,8 @@ void NetworkDb::unload() mInPackets.clear(); mLoaded = false; } + +const NetworkInfos &NetworkDb::getFakePackets() +{ + return mInPackets; +} |