Files
ppsspp/UI/PSPNSApplicationDelegate.mm
T
Henrik RydgårdandClaude Opus 5.5 a361dfc490 Drop unused Config.h and SmallDataConvert.h includes
Config.h is edited about 100 times a year and each edit recompiled 198
files; now 172. SmallDataConvert.h pulls in arm_neon.h and was included by
headers that don't use it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-13 12:13:42 +02:00

43 lines
988 B
Plaintext

//
// PSPNSApplicationDelegate.mm
// PPSSPP
//
// Created by Serena on 22/04/2023.
//
#import <Cocoa/Cocoa.h>
#import "PSPNSApplicationDelegate.h"
#include "Common/System/System.h"
#include "Core/Util/RecentFiles.h"
#include "Core/SaveState.h"
@implementation PSPNSApplicationDelegate
+ (instancetype)sharedAppDelegate {
static PSPNSApplicationDelegate *del;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
del = [PSPNSApplicationDelegate new];
});
return del;
}
- (void)application:(NSApplication *)application openURLs:(NSArray<NSURL *> *)urls {
NSURL *firstURL = urls.firstObject;
if (!firstURL) return; // No URLs, don't do anything
System_PostUIMessage(UIMessage::REQUEST_GAME_BOOT, firstURL.fileSystemRepresentation);
}
- (NSMenu *)applicationDockMenu:(NSApplication *)sender {
// TODO: Actually implement a dock menu thingy.
for (std::string iso : g_recentFiles.GetRecentFiles()) {
// printf("%s\n", iso.c_str());
}
return nil;
}
@end