Skip to content

Commit 7a2e1db

Browse files
fix: Make romver global to fix build error
This commit fixes a build error that was caused by the `romver` variable being declared as `static` in `system.c`, which made it inaccessible from other files. The `static` keyword has been removed to make the variable global, which resolves the linker error. This change is part of the larger effort to add the OpenTuna installer page, and this fix is necessary for that feature to work correctly.
1 parent b05cbde commit 7a2e1db

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

installer/system.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,10 @@ static struct FileAlias FileAlias[NUM_CROSSLINKED_FILES] = {
328328

329329
static char MGFolderRegion, PS2SystemType;
330330
static unsigned short int ROMVersion;
331-
static char SysExecFolder[] = "BREXEC-SYSTEM"; // Read above.
332-
static char PSXSysExecFolder[] = "BIEXEC-SYSTEM";
333-
static char SysExecFile[12]; /* E.g. "osdmain.elf" or "osd110.elf" */
334-
static char romver[16];
331+
char SysExecFolder[] = "BREXEC-SYSTEM"; // Read above.
332+
char PSXSysExecFolder[] = "BIEXEC-SYSTEM";
333+
char SysExecFile[12]; /* E.g. "osdmain.elf" or "osd110.elf" */
334+
char romver[16];
335335

336336
static int InitMCInfo(int port, int slot)
337337
{

0 commit comments

Comments
 (0)