mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Divorce system info from global runloop state entirely
This commit is contained in:
parent
0fa871a296
commit
732d2db40e
@ -533,7 +533,8 @@ void uninit_libretro_sym(void)
|
|||||||
/* No longer valid. */
|
/* No longer valid. */
|
||||||
free(system->special);
|
free(system->special);
|
||||||
free(system->ports);
|
free(system->ports);
|
||||||
memset(&global->system, 0, sizeof(global->system));
|
|
||||||
|
rarch_system_info_clear();
|
||||||
driver->camera_active = false;
|
driver->camera_active = false;
|
||||||
driver->location_active = false;
|
driver->location_active = false;
|
||||||
|
|
||||||
|
12
retroarch.c
12
retroarch.c
@ -317,12 +317,16 @@ static void set_special_paths(char **argv, unsigned num_content)
|
|||||||
sizeof(settings->system_directory));
|
sizeof(settings->system_directory));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rarch_system_info_t g_system;
|
||||||
|
|
||||||
rarch_system_info_t *rarch_system_info_get_ptr(void)
|
rarch_system_info_t *rarch_system_info_get_ptr(void)
|
||||||
{
|
{
|
||||||
global_t *global = global_get_ptr();
|
return &g_system;
|
||||||
if (!global)
|
}
|
||||||
return NULL;
|
|
||||||
return &global->system;
|
void rarch_system_info_clear(void)
|
||||||
|
{
|
||||||
|
memset(&g_system, 0, sizeof(g_system));
|
||||||
}
|
}
|
||||||
|
|
||||||
void set_paths_redirect(const char *path)
|
void set_paths_redirect(const char *path)
|
||||||
|
@ -150,8 +150,6 @@ typedef struct global
|
|||||||
unsigned windowed_scale;
|
unsigned windowed_scale;
|
||||||
} pending;
|
} pending;
|
||||||
|
|
||||||
rarch_system_info_t system;
|
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
#ifdef HAVE_MENU
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user