IMMORTAL: Migrate engine to Path

This commit is contained in:
Le Philousophe 2023-09-17 18:23:43 +02:00 committed by Eugene Sandulenko
parent 0ab0721905
commit fa613cc8e9
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ ImmortalEngine::ImmortalEngine(OSystem *syst, const ADGameDescription *gameDesc)
g_immortal = this;
// Add the game folder to the search manager path variable
const Common::FSNode gameDataDir(ConfMan.get("path"));
const Common::FSNode gameDataDir(ConfMan.getPath("path"));
SearchMan.addSubDirectoryMatching(gameDataDir, "game");
// Confirm that the engine was created

View File

@ -713,7 +713,7 @@ Common::SeekableReadStream *ImmortalEngine::loadIFF(Common::String fileName) {
*/
Common::File f;
if (!f.open(fileName)) {
if (!f.open(Common::Path(fileName))) {
debug("*surprised pikachu face*");
return nullptr;
}