Bind Apple platform services explicitly
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#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"
|
||||
@@ -17,6 +18,7 @@
|
||||
|
||||
std::mutex render_mutex;
|
||||
std::condition_variable render_cv;
|
||||
static std::unique_ptr<pp::platform::PlatformServices> g_platform_services;
|
||||
|
||||
@interface GameImagePicker : UIImagePickerController
|
||||
{
|
||||
@@ -580,6 +582,12 @@ 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();
|
||||
},
|
||||
});
|
||||
App::I->set_platform_services(g_platform_services.get());
|
||||
App::I->initLog();
|
||||
|
||||
//self.preferredFramesPerSecond = 60;
|
||||
|
||||
Reference in New Issue
Block a user