summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/configuration.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp
index cd31fed7..d8b11034 100644
--- a/src/configuration.cpp
+++ b/src/configuration.cpp
@@ -141,17 +141,17 @@ void Configuration::init(const std::string &filename, bool useResManager)
{
XML::Document doc(filename, useResManager);
+ if (useResManager)
+ mConfigPath = "PhysFS://" + filename;
+ else
+ mConfigPath = filename;
+
if (!doc.rootNode())
{
logger->log("Couldn't open configuration file: %s", filename.c_str());
return;
}
- if (useResManager)
- mConfigPath = "PhysFS://" + filename;
- else
- mConfigPath = filename;
-
xmlNodePtr rootNode = doc.rootNode();
if (!rootNode || !xmlStrEqual(rootNode->name, BAD_CAST "configuration"))