mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Get rid of 'unloadingCore'
This commit is contained in:
parent
1afdb5cb92
commit
5810a49866
@ -25,7 +25,6 @@
|
|||||||
#include "../../menu/menu.h"
|
#include "../../menu/menu.h"
|
||||||
|
|
||||||
@protocol RetroArch_Platform
|
@protocol RetroArch_Platform
|
||||||
- (void)unloadingCore;
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#if defined(HAVE_COCOATOUCH)
|
#if defined(HAVE_COCOATOUCH)
|
||||||
@ -76,8 +75,6 @@ extern apple_frontend_settings_t apple_frontend_settings;
|
|||||||
- (void)showGameView;
|
- (void)showGameView;
|
||||||
- (void)toggleUI;
|
- (void)toggleUI;
|
||||||
|
|
||||||
- (void)unloadingCore;
|
|
||||||
|
|
||||||
- (void)refreshSystemConfig;
|
- (void)refreshSystemConfig;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
@ -110,8 +107,6 @@ void get_ios_version(int *major, int *minor);
|
|||||||
|
|
||||||
@property (nonatomic, retain) NSWindow IBOutlet* window;
|
@property (nonatomic, retain) NSWindow IBOutlet* window;
|
||||||
|
|
||||||
- (void)unloadingCore;
|
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,6 +37,9 @@
|
|||||||
static id apple_platform;
|
static id apple_platform;
|
||||||
static CFRunLoopObserverRef iterate_observer;
|
static CFRunLoopObserverRef iterate_observer;
|
||||||
|
|
||||||
|
/* forward declaration */
|
||||||
|
void apple_rarch_exited(void);
|
||||||
|
|
||||||
static void rarch_draw(CFRunLoopObserverRef observer,
|
static void rarch_draw(CFRunLoopObserverRef observer,
|
||||||
CFRunLoopActivity activity, void *info)
|
CFRunLoopActivity activity, void *info)
|
||||||
{
|
{
|
||||||
@ -61,14 +64,6 @@ static void rarch_draw(CFRunLoopObserverRef observer,
|
|||||||
CFRunLoopWakeUp(CFRunLoopGetMain());
|
CFRunLoopWakeUp(CFRunLoopGetMain());
|
||||||
}
|
}
|
||||||
|
|
||||||
void apple_rarch_exited(void)
|
|
||||||
{
|
|
||||||
RetroArch_iOS *ap = (RetroArch_iOS *)apple_platform;
|
|
||||||
|
|
||||||
if (ap)
|
|
||||||
[ap unloadingCore];
|
|
||||||
}
|
|
||||||
|
|
||||||
apple_frontend_settings_t apple_frontend_settings;
|
apple_frontend_settings_t apple_frontend_settings;
|
||||||
|
|
||||||
enum frontend_powerstate ios_get_powerstate(int *seconds, int *percent)
|
enum frontend_powerstate ios_get_powerstate(int *seconds, int *percent)
|
||||||
@ -421,12 +416,6 @@ enum
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)unloadingCore
|
|
||||||
{
|
|
||||||
[self showPauseMenu:self];
|
|
||||||
btpad_set_inquiry_state(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
- (void)refreshSystemConfig
|
- (void)refreshSystemConfig
|
||||||
{
|
{
|
||||||
bool small_keyboard, is_icade, is_btstack;
|
bool small_keyboard, is_icade, is_btstack;
|
||||||
@ -468,6 +457,16 @@ void apple_display_alert(const char *message, const char *title)
|
|||||||
[alert show];
|
[alert show];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void apple_rarch_exited(void)
|
||||||
|
{
|
||||||
|
RetroArch_iOS *ap = (RetroArch_iOS *)apple_platform;
|
||||||
|
|
||||||
|
if (!ap)
|
||||||
|
return;
|
||||||
|
[ap showPauseMenu:ap];
|
||||||
|
btpad_set_inquiry_state(true);
|
||||||
|
}
|
||||||
|
|
||||||
typedef struct ui_companion_cocoatouch
|
typedef struct ui_companion_cocoatouch
|
||||||
{
|
{
|
||||||
void *empty;
|
void *empty;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user