Skip to content

Commit

Permalink
Fixing missing definition for force_sram
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioMartin86 committed Apr 11, 2024
1 parent 79564a7 commit aa8fa81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/cart_hw/sram.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#include "../scrc32.h"

T_SRAM sram;
extern int cinterface_force_sram;
int force_sram = 0;

/****************************************************************************
* A quick guide to external RAM on the Genesis
Expand Down Expand Up @@ -211,7 +211,7 @@ void sram_init(void)
/* this prevents backup RAM from being mapped in place of mirrored ROM when using S&K LOCK-ON feature */
sram.on = 0;
}
else if (cinterface_force_sram && cart.romsize <= 0x200000)
else if (force_sram && cart.romsize <= 0x200000)
{
// by default, gpgx enables saveram for all rom no bigger than 2MB
// we don't do that because it confuses ram searches and debugging, and adds extra baggage to savestates
Expand Down
2 changes: 1 addition & 1 deletion core/cart_hw/sram.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extern void sram_write_word(unsigned int address, unsigned int data);

/* global variables */
extern T_SRAM sram;

extern int force_sram;
extern int sram_get_actual_size();

#endif

0 comments on commit aa8fa81

Please sign in to comment.