mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
libretro: drop sram clear
It's done by the core. If the core is missing something, core itself needs to be fixed.
This commit is contained in:
parent
bce144211c
commit
a4fa71d4da
2 changed files with 3 additions and 20 deletions
|
@ -61,8 +61,9 @@ void PicoExit(void)
|
||||||
PicoCartUnload();
|
PicoCartUnload();
|
||||||
z80_exit();
|
z80_exit();
|
||||||
|
|
||||||
if (Pico.sv.data)
|
|
||||||
free(Pico.sv.data);
|
free(Pico.sv.data);
|
||||||
|
Pico.sv.data = NULL;
|
||||||
|
Pico.sv.start = Pico.sv.end = 0;
|
||||||
pevt_dump();
|
pevt_dump();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -959,22 +959,6 @@ static const char *find_bios(int *region, const char *cd_fname)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sram_reset()
|
|
||||||
{
|
|
||||||
SRam.data = NULL;
|
|
||||||
SRam.start = 0;
|
|
||||||
SRam.end = 0;
|
|
||||||
SRam.flags = '\0';
|
|
||||||
SRam.unused2 = '\0';
|
|
||||||
SRam.changed = '\0' ;
|
|
||||||
SRam.eeprom_type = '\0';
|
|
||||||
SRam.unused3 = '\0';
|
|
||||||
SRam.eeprom_bit_cl = '\0';
|
|
||||||
SRam.eeprom_bit_in = '\0';
|
|
||||||
SRam.eeprom_bit_out = '\0';
|
|
||||||
SRam.size = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool retro_load_game(const struct retro_game_info *info)
|
bool retro_load_game(const struct retro_game_info *info)
|
||||||
{
|
{
|
||||||
enum media_type_e media_type;
|
enum media_type_e media_type;
|
||||||
|
@ -1031,8 +1015,6 @@ bool retro_load_game(const struct retro_game_info *info)
|
||||||
{ 0 },
|
{ 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
sram_reset();
|
|
||||||
|
|
||||||
enum retro_pixel_format fmt = RETRO_PIXEL_FORMAT_RGB565;
|
enum retro_pixel_format fmt = RETRO_PIXEL_FORMAT_RGB565;
|
||||||
if (!environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &fmt)) {
|
if (!environ_cb(RETRO_ENVIRONMENT_SET_PIXEL_FORMAT, &fmt)) {
|
||||||
if (log_cb)
|
if (log_cb)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue