From b2e9507b0e5ce8ec5dd7a98f30fb201394d83e07 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 27 Nov 2023 20:12:03 +0100 Subject: [PATCH] (Android) Small change to PlatformUtil --- es-core/src/utils/PlatformUtil.cpp | 8 ++++---- es-core/src/utils/PlatformUtil.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/es-core/src/utils/PlatformUtil.cpp b/es-core/src/utils/PlatformUtil.cpp index 7f8d4cc96..ef55cc6e1 100644 --- a/es-core/src/utils/PlatformUtil.cpp +++ b/es-core/src/utils/PlatformUtil.cpp @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT // -// EmulationStation Desktop Edition +// ES-DE // Platform.cpp // // Platform utility functions. @@ -378,7 +378,7 @@ namespace Utils { // TODO: Wait for interface to close and check actual outcome. JNIEnv* jniEnv {reinterpret_cast(SDL_AndroidGetJNIEnv())}; - jclass jniClass {jniEnv->FindClass("org/esde/esde/esde")}; + jclass jniClass {jniEnv->FindClass("org/es_de/frontend/MainActivity")}; jmethodID methodID { jniEnv->GetStaticMethodID(jniClass, "requestStoragePermissions", "()Z")}; const bool result { @@ -390,7 +390,7 @@ namespace Utils bool checkEmulatorInstalled(const std::string& packageName, const std::string& activity) { JNIEnv* jniEnv {reinterpret_cast(SDL_AndroidGetJNIEnv())}; - jclass jniClass {jniEnv->FindClass("org/esde/esde/esde")}; + jclass jniClass {jniEnv->FindClass("org/es_de/frontend/MainActivity")}; jmethodID methodID {jniEnv->GetStaticMethodID( jniClass, "checkEmulatorInstalled", "(Ljava/lang/String;Ljava/lang/String;)Z")}; bool returnValue {static_cast(jniEnv->CallStaticBooleanMethod( @@ -406,7 +406,7 @@ namespace Utils std::vector>& extras) { JNIEnv* jniEnv {reinterpret_cast(SDL_AndroidGetJNIEnv())}; - jclass jniClass {jniEnv->FindClass("org/esde/esde/esde")}; + jclass jniClass {jniEnv->FindClass("org/es_de/frontend/MainActivity")}; jmethodID methodID { jniEnv->GetStaticMethodID(jniClass, "launchGame", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/" diff --git a/es-core/src/utils/PlatformUtil.h b/es-core/src/utils/PlatformUtil.h index 57c78b28f..97687f052 100644 --- a/es-core/src/utils/PlatformUtil.h +++ b/es-core/src/utils/PlatformUtil.h @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT // -// EmulationStation Desktop Edition +// ES-DE // Platform.h // // Platform utility functions.