(frontend.c) Use rarch_system_info_get_ptr

This commit is contained in:
twinaphex 2015-06-25 13:38:46 +02:00
parent 0ca457a40a
commit f5dbf50ebc
1 changed files with 9 additions and 7 deletions

View File

@ -75,10 +75,11 @@ void main_exit(void *args)
driver_t *driver = driver_get_ptr(); driver_t *driver = driver_get_ptr();
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
global_t *global = global_get_ptr(); global_t *global = global_get_ptr();
rarch_system_info_t *system = rarch_system_info_get_ptr();
const frontend_ctx_driver_t *frontend = frontend_get_ptr(); const frontend_ctx_driver_t *frontend = frontend_get_ptr();
const ui_companion_driver_t *ui = ui_companion_get_ptr(); const ui_companion_driver_t *ui = ui_companion_get_ptr();
global->system.shutdown = false; system->shutdown = false;
main_exit_save_config(); main_exit_save_config();
@ -174,6 +175,7 @@ static void history_playlist_push(content_playlist_t *playlist,
{ {
char tmp[PATH_MAX_LENGTH] = {0}; char tmp[PATH_MAX_LENGTH] = {0};
global_t *global = global_get_ptr(); global_t *global = global_get_ptr();
rarch_system_info_t *system = rarch_system_info_get_ptr();
if (!playlist || (global->core_type == CORE_TYPE_DUMMY) || !info) if (!playlist || (global->core_type == CORE_TYPE_DUMMY) || !info)
return; return;
@ -186,7 +188,7 @@ static void history_playlist_push(content_playlist_t *playlist,
if (*tmp) if (*tmp)
path_resolve_realpath(tmp, sizeof(tmp)); path_resolve_realpath(tmp, sizeof(tmp));
if (global->system.no_content || *tmp) if (system->no_content || *tmp)
content_playlist_push(playlist, content_playlist_push(playlist,
*tmp ? tmp : NULL, *tmp ? tmp : NULL,
NULL, NULL,
@ -316,14 +318,14 @@ int rarch_main(int argc, char *argv[], void *data)
if (settings->history_list_enable) if (settings->history_list_enable)
{ {
global_t *global = global_get_ptr(); global_t *global = global_get_ptr();
rarch_system_info_t *sysinfo = rarch_system_info_get_ptr(); rarch_system_info_t *system = rarch_system_info_get_ptr();
if (global->content_is_init || global->system.no_content) if (global->content_is_init || system->no_content)
history_playlist_push( history_playlist_push(
g_defaults.history, g_defaults.history,
global->fullpath, global->fullpath,
settings->libretro, settings->libretro,
sysinfo ? &sysinfo->info : NULL); system ? &system->info : NULL);
} }
if (driver) if (driver)