(Apple) Move rarch_main_spring from ObjC source file to C (platform_apple.c)

This commit is contained in:
twinaphex 2013-11-22 01:36:35 +01:00
parent 6500f9bd21
commit afb2419235
2 changed files with 17 additions and 16 deletions

View File

@ -34,22 +34,6 @@ bool apple_is_running;
bool apple_use_tv_mode;
RAModuleInfo* apple_core;
void* rarch_main_spring(void* args)
{
char** argv = args;
uint32_t argc = 0;
while (argv && argv[argc]) argc++;
if (rarch_main(argc, argv))
{
rarch_main_clear_state();
dispatch_async_f(dispatch_get_main_queue(), (void*)1, apple_rarch_exited);
}
return 0;
}
void apple_run_core(RAModuleInfo* core, const char* file)
{
if (!apple_is_running)

View File

@ -161,6 +161,23 @@ static void system_shutdown(bool force)
dispatch_async_f(dispatch_get_main_queue(), 0, apple_rarch_exited);
}
void *rarch_main_spring(void* args)
{
char** argv = args;
uint32_t argc = 0;
while (argv && argv[argc])
argc++;
if (rarch_main(argc, argv))
{
rarch_main_clear_state();
dispatch_async_f(dispatch_get_main_queue(), (void*)1, apple_rarch_exited);
}
return 0;
}
const frontend_ctx_driver_t frontend_ctx_apple = {
NULL, /* environment_get */
NULL, /* init */