Skip to content

Commit

Permalink
d_cps1: Jurassic99PatchCallback big-endian fix
Browse files Browse the repository at this point in the history
  • Loading branch information
barbudreadmon committed Feb 16, 2024
1 parent 6cf8228 commit 728246d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/burn/drv/capcom/d_cps1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
}
}
}
Expand Down

0 comments on commit 728246d

Please sign in to comment.