Cleanups
This commit is contained in:
parent
6bac58b902
commit
f7ae8001ad
|
@ -328,8 +328,6 @@ enum
|
||||||
if (vt == _vt)
|
if (vt == _vt)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RARCH_LOG("[Cocoa]: change view type: %d ? %d\n", _vt, vt);
|
|
||||||
|
|
||||||
_vt = vt;
|
_vt = vt;
|
||||||
if (_renderView != nil)
|
if (_renderView != nil)
|
||||||
{
|
{
|
||||||
|
@ -337,7 +335,8 @@ enum
|
||||||
_renderView = nil;
|
_renderView = nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (vt) {
|
switch (vt)
|
||||||
|
{
|
||||||
#ifdef HAVE_COCOA_METAL
|
#ifdef HAVE_COCOA_METAL
|
||||||
case APPLE_VIEW_TYPE_VULKAN:
|
case APPLE_VIEW_TYPE_VULKAN:
|
||||||
case APPLE_VIEW_TYPE_METAL:
|
case APPLE_VIEW_TYPE_METAL:
|
||||||
|
@ -353,10 +352,8 @@ enum
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case APPLE_VIEW_TYPE_OPENGL_ES:
|
case APPLE_VIEW_TYPE_OPENGL_ES:
|
||||||
{
|
|
||||||
_renderView = (BRIDGE GLKView*)glkitview_init();
|
_renderView = (BRIDGE GLKView*)glkitview_init();
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
case APPLE_VIEW_TYPE_NONE:
|
case APPLE_VIEW_TYPE_NONE:
|
||||||
default:
|
default:
|
||||||
|
@ -418,6 +415,7 @@ enum
|
||||||
|
|
||||||
- (void)applicationDidFinishLaunching:(UIApplication *)application
|
- (void)applicationDidFinishLaunching:(UIApplication *)application
|
||||||
{
|
{
|
||||||
|
NSError *error;
|
||||||
char arguments[] = "retroarch";
|
char arguments[] = "retroarch";
|
||||||
char *argv[] = {arguments, NULL};
|
char *argv[] = {arguments, NULL};
|
||||||
int argc = 1;
|
int argc = 1;
|
||||||
|
@ -429,7 +427,6 @@ enum
|
||||||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||||
[self.window makeKeyAndVisible];
|
[self.window makeKeyAndVisible];
|
||||||
|
|
||||||
NSError *error;
|
|
||||||
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:&error];
|
[[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:&error];
|
||||||
if (error) {
|
if (error) {
|
||||||
NSLog(@"Could not set audio session category: %@",error.localizedDescription);
|
NSLog(@"Could not set audio session category: %@",error.localizedDescription);
|
||||||
|
|
Loading…
Reference in New Issue