mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
Revert "CRYO: Use cryo.dat for all game versions"
This reverts commit 6ff7ef95d7
.
This commit is contained in:
parent
95feec2aa6
commit
3e4710bb20
@ -4729,11 +4729,15 @@ void EdenGame::convertMacToPC() {
|
||||
}
|
||||
|
||||
void EdenGame::loadpermfiles() {
|
||||
switch (_vm->getPlatform()) {
|
||||
case Common::kPlatformDOS:
|
||||
{
|
||||
// Since PC version stores hotspots and rooms info in the executable, load them from premade resource file
|
||||
Common::File f;
|
||||
const int kNumIcons = 136;
|
||||
const int kNumRooms = 424;
|
||||
|
||||
if (f.open("cryo.dat")) {
|
||||
const int kNumIcons = 136;
|
||||
const int kNumRooms = 424;
|
||||
const int dataSize = f.size() - 8 - 1; // CRYODATA + version
|
||||
char headerId[9];
|
||||
|
||||
@ -4747,12 +4751,7 @@ void EdenGame::loadpermfiles() {
|
||||
|
||||
if (dataSize != kNumIcons * sizeof(Icon) + kNumRooms * sizeof(Room))
|
||||
error("Mismatching data in aux data file");
|
||||
} else
|
||||
error("Can not load aux data");
|
||||
|
||||
switch (_vm->getPlatform()) {
|
||||
case Common::kPlatformDOS:
|
||||
// Since PC version stores hotspots and rooms info in the executable, load them from premade resource file
|
||||
for (int i = 0; i < kNumIcons; i++) {
|
||||
_gameIcons[i].sx = f.readSint16LE();
|
||||
_gameIcons[i].sy = f.readSint16LE();
|
||||
@ -4775,25 +4774,22 @@ void EdenGame::loadpermfiles() {
|
||||
_gameRooms[i]._location = f.readByte();
|
||||
_gameRooms[i]._backgroundBankNum = f.readByte();
|
||||
}
|
||||
|
||||
f.close();
|
||||
} else
|
||||
error("Can not load aux data");
|
||||
}
|
||||
break;
|
||||
case Common::kPlatformMacintosh:
|
||||
loadIconFile(2498, _gameIcons);
|
||||
loadRoomFile(2497, _gameRooms);
|
||||
loadRawFile(2486, _gameLipsync);
|
||||
convertMacToPC();
|
||||
|
||||
// Skip the icons and rooms of the DOS version
|
||||
f.skip(kNumIcons * sizeof(Icon) + kNumRooms * sizeof(Room));
|
||||
break;
|
||||
default:
|
||||
error("Unsupported platform");
|
||||
}
|
||||
|
||||
// Read the common static data
|
||||
// TODO
|
||||
|
||||
f.close();
|
||||
|
||||
loadRawFile(0, _mainBankBuf);
|
||||
loadRawFile(402, _gameFont);
|
||||
loadRawFile(404, _gameDialogs);
|
||||
|
Loading…
Reference in New Issue
Block a user