[Base] Android content URI file descriptor opening

This commit is contained in:
Triang3l
2022-07-17 16:25:58 +03:00
parent 34a952d789
commit 93a7918025
3 changed files with 293 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
#include "xenia/base/assert.h"
#include "xenia/base/cvar.h"
#include "xenia/base/filesystem.h"
#include "xenia/base/logging.h"
#include "xenia/base/memory.h"
#include "xenia/base/system.h"
@@ -98,6 +99,8 @@ void InitializeAndroidAppFromMainThread(int32_t api_level,
// Logging uses threading.
xe::threading::AndroidInitialize();
xe::filesystem::AndroidInitialize();
// Initialize the cvars before logging.
if (launch_arguments_bundle) {
cvar::ParseLaunchArgumentsFromAndroidBundle(launch_arguments_bundle);
@@ -135,6 +138,8 @@ void ShutdownAndroidAppFromMainThread() {
xe::ShutdownLogging();
xe::filesystem::AndroidShutdown();
xe::threading::AndroidShutdown();
if (android_application_context_) {