Esempio n. 1
0
static bool event_init_content(void)
{
   global_t *global = global_get_ptr();

   /* No content to be loaded for dummy core,
    * just successfully exit. */
   if (global->inited.core.type == CORE_TYPE_DUMMY)
      return true;

   if (!global->inited.core.no_content)
      rarch_ctl(RARCH_ACTION_STATE_FILL_PATHNAMES, NULL);

   if (!init_content_file())
      return false;

   if (global->inited.core.no_content)
      return true;

   event_set_savestate_auto_index();

   if (event_load_save_files())
      RARCH_LOG("%s.\n",
            msg_hash_to_str(MSG_SKIPPING_SRAM_LOAD));

   event_load_auto_state();
   event_command(EVENT_CMD_BSV_MOVIE_INIT);
   event_command(EVENT_CMD_NETPLAY_INIT);

   return true;
}
Esempio n. 2
0
static bool event_init_content(void)
{
   global_t *global = global_get_ptr();

   /* No content to be loaded for dummy core,
    * just successfully exit. */
   if (global->core_type == CORE_TYPE_DUMMY) 
      return true;

   if (!global->libretro_no_content)
      rarch_fill_pathnames();

   if (!init_content_file())
      return false;

   if (global->libretro_no_content)
      return true;

   event_set_savestate_auto_index();

   if (event_load_save_files())
      RARCH_LOG("Skipping SRAM load.\n");

   event_load_auto_state();
   event_command(EVENT_CMD_BSV_MOVIE_INIT);
   event_command(EVENT_CMD_NETPLAY_INIT);

   return true;
}
Esempio n. 3
0
static bool event_init_content(void)
{
   rarch_ctl(RARCH_CTL_SET_SRAM_ENABLE, NULL);

   /* No content to be loaded for dummy core,
    * just successfully exit. */
   if (rarch_ctl(RARCH_CTL_IS_DUMMY_CORE, NULL))
      return true;

   if (!content_ctl(CONTENT_CTL_DOES_NOT_NEED_CONTENT, NULL))
      rarch_ctl(RARCH_CTL_FILL_PATHNAMES, NULL);

   if (!content_ctl(CONTENT_CTL_INIT, NULL))
      return false;

   if (content_ctl(CONTENT_CTL_DOES_NOT_NEED_CONTENT, NULL))
      return true;

   event_set_savestate_auto_index();

   if (event_load_save_files())
      RARCH_LOG("%s.\n",
            msg_hash_to_str(MSG_SKIPPING_SRAM_LOAD));

   event_load_auto_state();
   event_cmd_ctl(EVENT_CMD_BSV_MOVIE_INIT, NULL);
   event_cmd_ctl(EVENT_CMD_NETPLAY_INIT, NULL);

   return true;
}