mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Rename functions
This commit is contained in:
parent
a57abb74dc
commit
4b8de58878
4
driver.c
4
driver.c
@ -42,7 +42,7 @@ void driver_free(void)
|
|||||||
free(driver);
|
free(driver);
|
||||||
}
|
}
|
||||||
|
|
||||||
static driver_t *driver_alloc(void)
|
static driver_t *driver_new(void)
|
||||||
{
|
{
|
||||||
driver_t *driver = (driver_t*)calloc(1, sizeof(driver_t));
|
driver_t *driver = (driver_t*)calloc(1, sizeof(driver_t));
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ static driver_t *driver_alloc(void)
|
|||||||
void driver_clear_state(void)
|
void driver_clear_state(void)
|
||||||
{
|
{
|
||||||
driver_free();
|
driver_free();
|
||||||
g_driver = driver_alloc();
|
g_driver = driver_new();
|
||||||
}
|
}
|
||||||
|
|
||||||
driver_t *driver_get_ptr(void)
|
driver_t *driver_get_ptr(void)
|
||||||
|
@ -1731,8 +1731,8 @@ void rarch_main_free(void)
|
|||||||
rarch_main_command(RARCH_CMD_LOG_FILE_DEINIT);
|
rarch_main_command(RARCH_CMD_LOG_FILE_DEINIT);
|
||||||
rarch_main_command(RARCH_CMD_DRIVERS_DEINIT);
|
rarch_main_command(RARCH_CMD_DRIVERS_DEINIT);
|
||||||
|
|
||||||
rarch_main_state_deinit();
|
rarch_main_state_free();
|
||||||
rarch_main_global_deinit();
|
rarch_main_global_free();
|
||||||
config_free();
|
config_free();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
14
runloop.c
14
runloop.c
@ -920,7 +920,7 @@ static int rarch_main_iterate_quit(void)
|
|||||||
if (global->core_shutdown_initiated
|
if (global->core_shutdown_initiated
|
||||||
&& settings->load_dummy_on_core_shutdown)
|
&& settings->load_dummy_on_core_shutdown)
|
||||||
{
|
{
|
||||||
rarch_main_data_deinit();
|
rarch_main_data_free();
|
||||||
if (!rarch_main_command(RARCH_CMD_PREPARE_DUMMY))
|
if (!rarch_main_command(RARCH_CMD_PREPARE_DUMMY))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
@ -1010,7 +1010,7 @@ runloop_t *rarch_main_get_ptr(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void rarch_main_state_deinit(void)
|
void rarch_main_state_free(void)
|
||||||
{
|
{
|
||||||
runloop_t *runloop = rarch_main_get_ptr();
|
runloop_t *runloop = rarch_main_get_ptr();
|
||||||
|
|
||||||
@ -1020,7 +1020,7 @@ void rarch_main_state_deinit(void)
|
|||||||
free(runloop);
|
free(runloop);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rarch_main_global_deinit(void)
|
void rarch_main_global_free(void)
|
||||||
{
|
{
|
||||||
global_t *global = NULL;
|
global_t *global = NULL;
|
||||||
|
|
||||||
@ -1053,7 +1053,7 @@ FILE *rarch_main_log_file(void)
|
|||||||
return global->log_file;
|
return global->log_file;
|
||||||
}
|
}
|
||||||
|
|
||||||
static global_t *rarch_main_global_init(void)
|
static global_t *rarch_main_global_new(void)
|
||||||
{
|
{
|
||||||
global_t *global = (global_t*)calloc(1, sizeof(global_t));
|
global_t *global = (global_t*)calloc(1, sizeof(global_t));
|
||||||
|
|
||||||
@ -1077,11 +1077,11 @@ void rarch_main_clear_state(void)
|
|||||||
{
|
{
|
||||||
driver_clear_state();
|
driver_clear_state();
|
||||||
|
|
||||||
rarch_main_state_deinit();
|
rarch_main_state_free();
|
||||||
g_runloop = rarch_main_state_init();
|
g_runloop = rarch_main_state_init();
|
||||||
|
|
||||||
rarch_main_global_deinit();
|
rarch_main_global_free();
|
||||||
g_extern = rarch_main_global_init();
|
g_extern = rarch_main_global_new();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool rarch_main_is_idle(void)
|
bool rarch_main_is_idle(void)
|
||||||
|
@ -482,11 +482,11 @@ void rarch_main_data_clear_state(void);
|
|||||||
|
|
||||||
void rarch_main_data_iterate(void);
|
void rarch_main_data_iterate(void);
|
||||||
|
|
||||||
void rarch_main_state_deinit(void);
|
void rarch_main_state_free(void);
|
||||||
|
|
||||||
void rarch_main_global_deinit(void);
|
void rarch_main_global_free(void);
|
||||||
|
|
||||||
void rarch_main_data_deinit(void);
|
void rarch_main_data_free(void);
|
||||||
|
|
||||||
void rarch_main_data_init_queues(void);
|
void rarch_main_data_init_queues(void);
|
||||||
|
|
||||||
|
@ -780,7 +780,7 @@ static void data_runloop_thread_deinit(data_runloop_t *runloop)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void rarch_main_data_deinit(void)
|
void rarch_main_data_free(void)
|
||||||
{
|
{
|
||||||
data_runloop_t *data_runloop = (data_runloop_t*)rarch_main_data_get_ptr();
|
data_runloop_t *data_runloop = (data_runloop_t*)rarch_main_data_get_ptr();
|
||||||
|
|
||||||
@ -898,7 +898,7 @@ void rarch_main_data_iterate(void)
|
|||||||
data_runloop_iterate(false, data_runloop);
|
data_runloop_iterate(false, data_runloop);
|
||||||
}
|
}
|
||||||
|
|
||||||
static data_runloop_t *rarch_main_data_init(void)
|
static data_runloop_t *rarch_main_data_new(void)
|
||||||
{
|
{
|
||||||
data_runloop_t *data_runloop = (data_runloop_t*)calloc(1, sizeof(data_runloop_t));
|
data_runloop_t *data_runloop = (data_runloop_t*)calloc(1, sizeof(data_runloop_t));
|
||||||
|
|
||||||
@ -917,8 +917,8 @@ static data_runloop_t *rarch_main_data_init(void)
|
|||||||
|
|
||||||
void rarch_main_data_clear_state(void)
|
void rarch_main_data_clear_state(void)
|
||||||
{
|
{
|
||||||
rarch_main_data_deinit();
|
rarch_main_data_free();
|
||||||
g_data_runloop = rarch_main_data_init();
|
g_data_runloop = rarch_main_data_new();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user