diff --git a/engines/icb/configfile.cpp b/engines/icb/configfile.cpp index 7d58c4cd6ae..ce20acc508f 100644 --- a/engines/icb/configfile.cpp +++ b/engines/icb/configfile.cpp @@ -33,6 +33,7 @@ // TODO: Complete refactor #include "common/textconsole.h" +#include "common/config-manager.h" namespace ICB { @@ -53,10 +54,11 @@ Common::String ConfigFile::readSetting(const Common::String §ion, const Comm } void ConfigFile::readFile(const Common::String &filename) { + Common::String path = ConfMan.get("path") + "/" + filename; std::string currentSection = ""; - std::ifstream file(filename.c_str()); + std::ifstream file(path.c_str()); if (!file.is_open() || file.fail()) { - // assert(0); + assert(0); } std::string line;