aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo/resource.cpp
diff options
context:
space:
mode:
authorCameron Cawley2019-11-08 20:24:57 +0000
committerFilippos Karapetis2019-11-09 01:08:14 +0200
commitb2452d6ffde98777353b2e2d9fcfd2de66d5a28b (patch)
treeef3d6ad8440c1817f0e9d56d33dd9aefac4479d2 /engines/cryo/resource.cpp
parent8ac0012fdde8fe0c380ecbff649bc32cff7a2a28 (diff)
downloadscummvm-rg350-b2452d6ffde98777353b2e2d9fcfd2de66d5a28b.tar.gz
scummvm-rg350-b2452d6ffde98777353b2e2d9fcfd2de66d5a28b.tar.bz2
scummvm-rg350-b2452d6ffde98777353b2e2d9fcfd2de66d5a28b.zip
CRYO: Use byteswap functions from common/endian.h
Diffstat (limited to 'engines/cryo/resource.cpp')
-rw-r--r--engines/cryo/resource.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cryo/resource.cpp b/engines/cryo/resource.cpp
index ccc1e738f0..3dbfbc4eb1 100644
--- a/engines/cryo/resource.cpp
+++ b/engines/cryo/resource.cpp
@@ -234,13 +234,13 @@ int EdenGame::loadSound(uint16 num) {
uint32 val = 0;
_bigfile.read(&val, 3);
- unsigned int chunkLen = LE32(val);
+ unsigned int chunkLen = FROM_LE_32(val);
if (chunkType == 5) {
_bigfile.read(_gameLipsync + 7260, chunkLen);
chunkType = _bigfile.readByte();
_bigfile.read(&val, 3);
- chunkLen = LE32(val);
+ chunkLen = FROM_LE_32(val);
}
// 3. Normal sound data
@@ -259,7 +259,7 @@ void EdenGame::convertMacToPC() {
// Array of longs
int *p = (int *)_gameLipsync;
for (int i = 0; i < 7240 / 4; i++)
- p[i] = BE32(p[i]);
+ p[i] = FROM_BE_32(p[i]);
}
void EdenGame::loadpermfiles() {
@@ -472,7 +472,7 @@ bool EdenGame::ReadDataSyncVOC(unsigned int num) {
uint32 chunkLen = 0;
loadpartoffile(resNum, &chunkLen, filePos, 3);
filePos += 3;
- chunkLen = LE32(chunkLen);
+ chunkLen = FROM_LE_32(chunkLen);
loadpartoffile(resNum, _gameLipsync + 7260, filePos, chunkLen);
return true;
}