aboutsummaryrefslogtreecommitdiff
path: root/engines/cryomni3d
diff options
context:
space:
mode:
authorLe Philousophe2019-03-07 18:55:16 +0100
committerEugene Sandulenko2019-06-01 22:43:48 +0200
commitdb85320bcc2deaa1753be24462d768a535b84b1c (patch)
tree8ba80e576945283809cfa8b445ab18695fb5a2b8 /engines/cryomni3d
parent6ef4fba3d1bc8df40eb7bcddbefab0531d7a55d5 (diff)
downloadscummvm-rg350-db85320bcc2deaa1753be24462d768a535b84b1c.tar.gz
scummvm-rg350-db85320bcc2deaa1753be24462d768a535b84b1c.tar.bz2
scummvm-rg350-db85320bcc2deaa1753be24462d768a535b84b1c.zip
CRYOMNI3D: Remove DATAS_V folder level for searching files
It's useless and Macintosh has a DATAV_HD folder which PC hasn't. So let's put all folders directly at root with the Versailles program
Diffstat (limited to 'engines/cryomni3d')
-rw-r--r--engines/cryomni3d/versailles/engine.cpp44
-rw-r--r--engines/cryomni3d/versailles/saveload.cpp6
2 files changed, 25 insertions, 25 deletions
diff --git a/engines/cryomni3d/versailles/engine.cpp b/engines/cryomni3d/versailles/engine.cpp
index 8d7d7fa527..48c63d339a 100644
--- a/engines/cryomni3d/versailles/engine.cpp
+++ b/engines/cryomni3d/versailles/engine.cpp
@@ -67,20 +67,20 @@ Common::Error CryOmni3DEngine_Versailles::run() {
CryOmni3DEngine::run();
const Common::FSNode gameDataDir(ConfMan.get("path"));
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/sc_trans", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/menu", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/basedoc/fonds", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/fonts", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/spr8col", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/spr8col/bmpok", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/wam", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/objets", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/gto", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/dial/flc_dial", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/dial/voix", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/textes", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/music", 1);
- SearchMan.addSubDirectoryMatching(gameDataDir, "datas_v/sound", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "sc_trans", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "menu", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "basedoc/fonds", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "fonts", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "spr8col", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "spr8col/bmpok", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "wam", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "objets", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "gto", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "dial/flc_dial", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "dial/voix", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "textes", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "music", 1);
+ SearchMan.addSubDirectoryMatching(gameDataDir, "sound", 1);
setupMessages();
@@ -582,13 +582,13 @@ void CryOmni3DEngine_Versailles::initNewLevel(int level) {
Common::SearchSet *levelFilesImgFix = new Common::SearchSet();
levelFilesAnimacti->addSubDirectoryMatching(gameDataDir, Common::String::format(
- "datas_v/animacti/level%d", level), 1);
+ "animacti/level%d", level), 1);
levelFilesWarp->addSubDirectoryMatching(gameDataDir, Common::String::format(
- "datas_v/warp/level%d/cyclo", level), 1);
+ "warp/level%d/cyclo", level), 1);
levelFilesWarp->addSubDirectoryMatching(gameDataDir, Common::String::format(
- "datas_v/warp/level%d/hnm", level), 1);
+ "warp/level%d/hnm", level), 1);
levelFilesImgFix->addSubDirectoryMatching(gameDataDir, Common::String::format(
- "datas_v/img_fix/level%d", level), 1);
+ "img_fix/level%d", level), 1);
SearchMan.add("__levelFiles_animacti", levelFilesAnimacti);
SearchMan.add("__levelFiles_warp", levelFilesWarp);
@@ -604,13 +604,13 @@ void CryOmni3DEngine_Versailles::initNewLevel(int level) {
Common::SearchSet *visitFilesImgFix = new Common::SearchSet();
visitFilesAnimacti->addSubDirectoryMatching(gameDataDir, Common::String::format(
- "datas_v/animacti/level%d", lvl), 1);
+ "animacti/level%d", lvl), 1);
visitFilesWarp->addSubDirectoryMatching(gameDataDir, Common::String::format(
- "datas_v/warp/level%d/cyclo", lvl), 1);
+ "warp/level%d/cyclo", lvl), 1);
visitFilesWarp->addSubDirectoryMatching(gameDataDir, Common::String::format(
- "datas_v/warp/level%d/hnm", lvl), 1);
+ "warp/level%d/hnm", lvl), 1);
visitFilesImgFix->addSubDirectoryMatching(gameDataDir, Common::String::format(
- "datas_v/img_fix/level%d", lvl), 1);
+ "img_fix/level%d", lvl), 1);
visitFiles->add(Common::String::format("__visitFiles_animacti_%d", lvl), visitFilesAnimacti);
visitFiles->add(Common::String::format("__visitFiles_warp_%d", lvl), visitFilesWarp);
diff --git a/engines/cryomni3d/versailles/saveload.cpp b/engines/cryomni3d/versailles/saveload.cpp
index 8afefa35ec..d4985dce39 100644
--- a/engines/cryomni3d/versailles/saveload.cpp
+++ b/engines/cryomni3d/versailles/saveload.cpp
@@ -42,7 +42,7 @@ bool CryOmni3DEngine_Versailles::canVisit() const {
// Build a custom SearchSet
const Common::FSNode gameDataDir(ConfMan.get("path"));
Common::SearchSet visitsSearchSet;
- visitsSearchSet.addSubDirectoryMatching(gameDataDir, "datas_v/savegame/visite", 1);
+ visitsSearchSet.addSubDirectoryMatching(gameDataDir, "savegame/visite", 1);
return visitsSearchSet.hasFile("game0001.sav");
}
@@ -66,7 +66,7 @@ void CryOmni3DEngine_Versailles::getSavesList(bool visit, Common::StringArray &s
// Add bootstrap visit
const Common::FSNode gameDataDir(ConfMan.get("path"));
Common::SearchSet visitsSearchSet;
- visitsSearchSet.addSubDirectoryMatching(gameDataDir, "datas_v/savegame/visite", 1);
+ visitsSearchSet.addSubDirectoryMatching(gameDataDir, "savegame/visite", 1);
if (visitsSearchSet.hasFile("game0001.sav")) {
Common::File visitFile;
if (!visitFile.open("game0001.sav", visitsSearchSet)) {
@@ -203,7 +203,7 @@ bool CryOmni3DEngine_Versailles::loadGame(bool visit, unsigned int saveNum) {
// Load bootstrap visit
const Common::FSNode gameDataDir(ConfMan.get("path"));
Common::SearchSet visitsSearchSet;
- visitsSearchSet.addSubDirectoryMatching(gameDataDir, "datas_v/savegame/visite", 1);
+ visitsSearchSet.addSubDirectoryMatching(gameDataDir, "savegame/visite", 1);
Common::File *visitFile = new Common::File();
if (!visitFile->open("game0001.sav", visitsSearchSet)) {
delete visitFile;