mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(Cocoa) Start using ui_companion_event_command
This commit is contained in:
parent
fb4f5c9331
commit
a730e35897
@ -247,7 +247,7 @@ static void poll_iteration(void)
|
|||||||
if (global && global->main_is_init)
|
if (global && global->main_is_init)
|
||||||
reply = NSTerminateCancel;
|
reply = NSTerminateCancel;
|
||||||
|
|
||||||
event_command(EVENT_CMD_QUIT);
|
ui_companion_event_command(EVENT_CMD_QUIT);
|
||||||
|
|
||||||
return reply;
|
return reply;
|
||||||
}
|
}
|
||||||
@ -265,7 +265,7 @@ static void poll_iteration(void)
|
|||||||
strlcpy(global->fullpath, __core.UTF8String, sizeof(global->fullpath));
|
strlcpy(global->fullpath, __core.UTF8String, sizeof(global->fullpath));
|
||||||
|
|
||||||
if (core_name)
|
if (core_name)
|
||||||
event_command(EVENT_CMD_LOAD_CONTENT);
|
ui_companion_event_command(EVENT_CMD_LOAD_CONTENT);
|
||||||
|
|
||||||
[sender replyToOpenOrPrint:NSApplicationDelegateReplySuccess];
|
[sender replyToOpenOrPrint:NSApplicationDelegateReplySuccess];
|
||||||
}
|
}
|
||||||
@ -295,7 +295,7 @@ static void poll_iteration(void)
|
|||||||
strlcpy(global->fullpath, __core.UTF8String, sizeof(global->fullpath));
|
strlcpy(global->fullpath, __core.UTF8String, sizeof(global->fullpath));
|
||||||
|
|
||||||
if (core_name)
|
if (core_name)
|
||||||
event_command(EVENT_CMD_LOAD_CONTENT);
|
ui_companion_event_command(EVENT_CMD_LOAD_CONTENT);
|
||||||
else
|
else
|
||||||
[self performSelector:@selector(chooseCore) withObject:nil afterDelay:.5f];
|
[self performSelector:@selector(chooseCore) withObject:nil afterDelay:.5f];
|
||||||
}
|
}
|
||||||
@ -380,7 +380,7 @@ static void poll_iteration(void)
|
|||||||
cmd = EVENT_CMD_RESIZE_WINDOWED_SCALE;
|
cmd = EVENT_CMD_RESIZE_WINDOWED_SCALE;
|
||||||
}
|
}
|
||||||
|
|
||||||
event_command(cmd);
|
ui_companion_event_command(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)alertDidEnd:(NSAlert *)alert returnCode:(int32_t)returnCode contextInfo:(void *)contextInfo
|
- (void)alertDidEnd:(NSAlert *)alert returnCode:(int32_t)returnCode contextInfo:(void *)contextInfo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user