d_cps1: Jurassic99PatchCallback big-endian fix

This commit is contained in:
barbudreadmon 2024-02-16 10:54:51 +01:00
parent 6cf82289a0
commit 728246d20c

View File

@ -17359,7 +17359,11 @@ static void Jurassic99PatchCallback()
};
for (INT32 i = 0; i < (sizeof(patch_fix_a) / sizeof(UINT32)) >> 1; i++) {
#ifdef LSB_FIRST
CpsRom[patch_fix_a[(i << 1) + 0]] = (UINT8)patch_fix_a[(i << 1) + 1];
#else
CpsRom[patch_fix_a[(i << 1) + 0]] = (UINT8)patch_fix_a[(i << 1) + (i & 1 ? -1 : 3)];
#endif
}
if (Cps1QSDip & 1) {
@ -17383,7 +17387,11 @@ static void Jurassic99PatchCallback()
};
for (INT32 i = 0; i < (sizeof(patch_fix_b) / sizeof(UINT32)) >> 1; i++) {
#ifdef LSB_FIRST
CpsRom[patch_fix_b[(i << 1) + 0]] = (UINT8)patch_fix_b[(i << 1) + 1];
#else
CpsRom[patch_fix_b[(i << 1) + 0]] = (UINT8)patch_fix_b[(i << 1) + (i & 1 ? -1 : 3)];
#endif
}
}
}