Support for 32bit color format

This commit is contained in:
negativeExponent
2025-09-01 22:07:53 +08:00
committed by LibretroAdmin
parent 3544ff567e
commit 033c5e2f32
7 changed files with 100 additions and 57 deletions

View File

@@ -95,9 +95,13 @@ static void power (void) {
SetReadHandler(0xC000, 0xCFFF, readPCM);
}
static void StateRestore(int version) {
sync();
}
void Mapper413_Init(CartInfo *info) {
pcmAddressMask =info->miscROMSize -1;
GameStateRestore =sync;
GameStateRestore =StateRestore;
GameHBIRQHook =horizontalBlanking;
info->Power = power;
AddExState(stateRegs, ~0, 0, 0);

View File

@@ -571,6 +571,10 @@ void FFE_Init(CartInfo *info) {
PPU_hook =trapPPUAddressChangeFFE;
}
static void StateRestore(int version) {
sync();
}
void Mapper561_562_Init(CartInfo *info) {
int CHRRAMSize;
maker =info->mapper ==562? VENUS: BUNG;
@@ -624,7 +628,7 @@ void Mapper561_562_Init(CartInfo *info) {
} else
trainerSize =0;
GameStateRestore =sync;
GameStateRestore =StateRestore;
info->Power =power;
info->Close =close;
if (maker ==VENUS) {

View File

@@ -207,6 +207,10 @@ void VRC24_close(void) {
}
}
static void StateRestore(int version) {
VRC24_Sync();
}
void VRC24_init(CartInfo *info, void (*_sync)(), int _A0, int _A1, uint8 _isVRC4, uint8 _useRepeatBit, uint8 defaultWRAMSizeKiB) {
VRC24_Sync =_sync;
VRC24_A0 =_A0;
@@ -220,7 +224,7 @@ void VRC24_init(CartInfo *info, void (*_sync)(), int _A0, int _A1, uint8 _isVRC4
VRC24_ExternalSelect =NULL;
info->Power =VRC24_power;
info->Close =VRC24_close;
GameStateRestore =_sync;
GameStateRestore =StateRestore;
AddExState(VRC24_stateRegs, ~0, 0, 0);
if (VRC24_isVRC4) {
MapIRQHook =VRC4_cpuCycle;