summaryrefslogtreecommitdiff
path: root/src/resources/db/networkdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/networkdb.cpp')
-rw-r--r--src/resources/db/networkdb.cpp7
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;
+}