From 500bbe9e0d69e4c62bef0e81b3aa4097c09503f5 Mon Sep 17 00:00:00 2001 From: Triang3l Date: Sat, 16 Jul 2022 13:42:04 +0300 Subject: [PATCH] [Base] Use to_path for Android path argument loading --- src/xenia/base/cvar_android.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xenia/base/cvar_android.cc b/src/xenia/base/cvar_android.cc index c8916d6be..7af6ff5a9 100644 --- a/src/xenia/base/cvar_android.cc +++ b/src/xenia/base/cvar_android.cc @@ -11,6 +11,7 @@ #include "xenia/base/assert.h" #include "xenia/base/cvar.h" +#include "xenia/base/filesystem.h" #include "xenia/base/main_android.h" namespace cvar { @@ -188,7 +189,7 @@ void ParseLaunchArgumentsFromAndroidBundle(jobject bundle) { const char* cvar_string_value_utf = jni_env->GetStringUTFChars(cvar_string_value, nullptr); if (cvar_string_value_utf) { - cvar_path->SetCommandLineValue(cvar_string_value_utf); + cvar_path->SetCommandLineValue(xe::to_path(cvar_string_value_utf)); jni_env->ReleaseStringUTFChars(cvar_string_value, cvar_string_value_utf); }