mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
ICB: Fixed accessing game ini file
This commit is contained in:
parent
edaa015de1
commit
6a28fee9ef
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user