Own Apple platform services and thin Win32 lifecycle shell

This commit is contained in:
2026-06-17 14:39:18 +02:00
parent 065717f89b
commit 2f33b00b2a
14 changed files with 517 additions and 191 deletions

View File

@@ -10,7 +10,6 @@
#import "GameViewController.h"
#import <OpenGLES/ES3/glext.h>
#include "app.h"
#include "platform_legacy/legacy_platform_services.h"
#include "platform_apple/apple_platform_services.h"
#include "settings.h"
#import "objc_utils.h"
@@ -582,11 +581,7 @@ bool is_tap = true;
pp::platform::apple::set_legacy_apple_state(
self,
(AppDelegate*)[[UIApplication sharedApplication] delegate]);
g_platform_services = pp::platform::legacy::create_platform_services({
.apple_document_services = []() -> pp::platform::apple::AppleDocumentPlatformServices& {
return pp::platform::apple::active_legacy_apple_document_platform_services();
},
});
g_platform_services = pp::platform::apple::create_apple_platform_services();
App::I->set_platform_services(g_platform_services.get());
App::I->initLog();