Skip to content

Commit

Permalink
C89 buildfix
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Sep 20, 2024
1 parent f1d7589 commit 7e7565e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pputile.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ uint8 cc;
uint32 vadr;
#ifdef PPU_VRC5FETCH
uint8 tmpd;
extern uint8 *VROM;
extern uint32 VROM_size;
#endif

#ifndef PPUT_MMC5SP
Expand Down Expand Up @@ -86,12 +88,9 @@ pshift[1] <<= 8;
C = MMC5BGVRAMADR(vadr);
#else
#ifdef PPU_VRC5FETCH
extern uint8 *VROM;
extern uint32 VROM_size;
if (tmpd & 0x40) {
if ((VROM_size * 8) == 128) {
if ((VROM_size * 8) == 128)
vadr = ((vadr & 0x07) << 1) | ((vadr & 0x10) >> 4) | ((vadr & 0x3FFE0) >> 1);
}
C = VROM + vadr;
} else {
C = VRAMADR(vadr);
Expand Down

2 comments on commit 7e7565e

@negativeExponent
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, forgot the C89 compat test

@LibretroAdmin
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Np.

Please sign in to comment.