Skip to content

Commit

Permalink
Split up more headers
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Dec 18, 2023
1 parent 174bf56 commit a483cea
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/mappers/KG256.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static SFORMAT StateRegs[] =
{ 0 }
};

static void Sync(void)
static void KG256Sync(void)
{
uint8 mirr;
int r = 0;
Expand Down Expand Up @@ -61,12 +61,12 @@ static void Sync(void)

static void KG256WriteHi(uint32 A, uint8 V) {
regs[2] = V;
Sync();
KG256Sync();
}

static void KG256WriteLo(uint32 A, uint8 V) {
regs[A & 0x03] = V;
Sync();
KG256Sync();
}

static void KG256Power(void) {
Expand All @@ -80,12 +80,12 @@ static void KG256Power(void) {
SetWriteHandler(0x6000, 0x7FFF, KG256WriteLo);
SetReadHandler(0x8000, 0xFFFF, CartBR);

Sync();
KG256Sync();

}

static void StateRestore(int version) {
Sync();
static void KG256StateRestore(int version) {
KG256Sync();
}

static void KG256Reset(void) {
Expand All @@ -94,17 +94,17 @@ static void KG256Reset(void) {
regs[1] = 0;
regs[2] = 0;

Sync();
KG256Sync();
}

void KG256_Init(CartInfo *info) {

Sync();
KG256Sync();

info->Power = KG256Power;
info->Reset = KG256Reset;
AddExState(&StateRegs, ~0, 0, 0);
GameStateRestore = StateRestore;
GameStateRestore = KG256StateRestore;
}


Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit a483cea

Please sign in to comment.