Skip to content

Commit

Permalink
(libretro) Move adjust_save_ram to retro_init
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinaphex committed Apr 10, 2012
1 parent a2c32d2 commit 7c2f801
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ EXPORT void retro_get_system_av_info(struct retro_system_av_info *info)
EXPORT void retro_init(void)
{
memset(libretro_save_buf, 0xff, sizeof(libretro_save_buf));
adjust_save_ram();
environ_cb(RETRO_ENVIRONMENT_GET_CAN_DUPE, &can_dupe);
}

static unsigned serialize_size = 0;
Expand Down Expand Up @@ -362,15 +364,6 @@ static bool can_dupe;

EXPORT void retro_run(void)
{
#if 0
static bool first = true;
if (first)
{
adjust_save_ram();
environ_cb(RETRO_ENVIRONMENT_GET_CAN_DUPE, &can_dupe);
first = false;
}
#endif

CPULoop();

Expand Down

0 comments on commit 7c2f801

Please sign in to comment.