Properly scope a few variables to prevent potential linker problems

This commit is contained in:
NewRisingSun
2025-04-11 18:43:28 +02:00
committed by LibretroAdmin
parent 38e0f03cf1
commit c7b26c99e5
2 changed files with 4 additions and 0 deletions

View File

@@ -47,12 +47,14 @@ uint8 *trainerpoo = NULL;
uint8 *ROM = NULL;
uint8 *VROM = NULL;
uint8 *ExtraNTARAM = NULL;
uint8 *MiscROM = NULL;
iNES_HEADER head = {0};
CartInfo iNESCart = {0};
uint32 ROM_size = 0;
uint32 VROM_size = 0;
uint32 MiscROM_size;
static int CHRRAMSize = -1;

View File

@@ -40,8 +40,10 @@ typedef struct {
extern uint8 *ROM;
extern uint8 *VROM;
extern uint8 *MiscROM;
extern uint32 ROM_size; /* prg size in 16K chunks */
extern uint32 VROM_size; /* chr size in 8K chunks */
extern uint32 MiscROM_size;
extern iNES_HEADER head;
void NSFVRC6_Init(void);