mirror of
https://github.com/holub/mame
synced 2025-04-24 09:20:02 +03:00
galaxian.cpp: addressed feedback on de45cc7e00
This commit is contained in:
parent
0b24aacb8a
commit
721999da8c
@ -8858,12 +8858,16 @@ void galaxian_state::init_bigkonggx()
|
||||
|
||||
uint8_t *romdata = memregion("maincpu")->base();
|
||||
int len = memregion("maincpu")->bytes();
|
||||
uint8_t buf[len];
|
||||
memcpy(buf, romdata, len);
|
||||
|
||||
// descramble the content of each 0x100 block
|
||||
for (int i = 0; i < len; i++)
|
||||
romdata[i] = buf[i ^ 0xff];
|
||||
for (int i = 0; i < len; i += 256)
|
||||
{
|
||||
for (int j = 0; j < (256 / 2); j++)
|
||||
{
|
||||
using std::swap;
|
||||
swap(romdata[i + j], romdata[i + (j ^ 0xff)]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void fourplay_state::init_fourplay()
|
||||
|
@ -198,7 +198,6 @@ public:
|
||||
void init_victoryc();
|
||||
void init_bmxstunts();
|
||||
void init_bigkonggx();
|
||||
void init_ckongis();
|
||||
|
||||
TILE_GET_INFO_MEMBER(bg_get_tile_info);
|
||||
void galaxian_palette(palette_device &palette);
|
||||
|
Loading…
Reference in New Issue
Block a user