Own Android platform services and narrow legacy fallback
This commit is contained in:
@@ -31,8 +31,7 @@
|
||||
|
||||
#include "pch.h"
|
||||
#include "app.h"
|
||||
#include "platform_legacy/legacy_platform_services.h"
|
||||
#include "platform_legacy/legacy_platform_state.h"
|
||||
#include "platform_android/android_platform_services.h"
|
||||
#include "asset.h"
|
||||
#include "keymap.h"
|
||||
#include "main.h"
|
||||
@@ -1092,8 +1091,8 @@ void android_main(struct android_app* state) {
|
||||
// Make sure glue isn't stripped.
|
||||
// DON'T REMOVE, even if the compiler say it's deprecated
|
||||
app_dummy();
|
||||
auto platform_services = pp::platform::legacy::create_platform_services({
|
||||
.android_bridge = {
|
||||
auto platform_services = pp::platform::android::create_platform_services({
|
||||
.bridge = {
|
||||
.clipboard_text = [] { return android_get_clipboard(); },
|
||||
.set_clipboard_text = [](std::string_view text) {
|
||||
return android_set_clipboard(std::string(text));
|
||||
@@ -1111,7 +1110,7 @@ void android_main(struct android_app* state) {
|
||||
android_pick_file_save(std::move(callback));
|
||||
},
|
||||
},
|
||||
.android_storage_paths = g_android_storage_paths,
|
||||
.storage_paths = g_android_storage_paths,
|
||||
});
|
||||
|
||||
App::I = new App;
|
||||
|
||||
Reference in New Issue
Block a user