From 27ddf6382ba312dbed77cf31f5a4a2bf9a013c88 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 27 Dec 2020 23:11:22 +0100 Subject: Set console's default language/country/region based on computer settings --- Source/Android/jni/MainAndroid.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Source/Android/jni/MainAndroid.cpp') diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 6542109949..1b698d2a17 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -93,12 +93,21 @@ void UpdatePointer() env->CallStaticVoidMethod(IDCache::GetNativeLibraryClass(), IDCache::GetUpdateTouchPointer()); } +std::vector Host_GetPreferredLocales() +{ + // We would like to call ConfigurationCompat.getLocales here, but this function gets called + // during dynamic initialization, and it seems like that makes us unable to obtain a JNIEnv. + return {}; +} + void Host_NotifyMapLoaded() { } + void Host_RefreshDSPDebuggerWindow() { } + bool Host_UIBlocksControllerState() { return false; -- cgit v1.2.3