Try fix libretro android again

This commit is contained in:
wheremyfoodat 2025-07-31 16:00:44 +03:00 committed by GitHub
commit d7e343d03b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 10 deletions

View file

@ -201,9 +201,7 @@ target_include_directories(boost SYSTEM INTERFACE ${Boost_INCLUDE_DIR})
if(ANDROID)
set(CRYPTOPP_OPT_DISABLE_ASM ON CACHE BOOL "" FORCE)
if(NOT BUILD_LIBRETRO_CORE)
target_sources(AlberCore PRIVATE src/jni_driver.cpp)
endif()
target_link_libraries(AlberCore PRIVATE EGL log)
endif()

View file

@ -10,11 +10,11 @@
#include "android_utils.hpp"
#include "sdl_sensors.hpp"
std::unique_ptr<Emulator> emulator = nullptr;
HIDService* hidService = nullptr;
RendererGL* renderer = nullptr;
bool romLoaded = false;
JavaVM* jvm = nullptr;
static std::unique_ptr<Emulator> emulator = nullptr;
static HIDService* hidService = nullptr;
static RendererGL* renderer = nullptr;
static bool romLoaded = false;
static JavaVM* jvm = nullptr;
jclass alberClass;
jmethodID alberClassOpenDocument;

View file

@ -19,8 +19,8 @@ static std::filesystem::path savePath;
static bool screenTouched = false;
static bool usingGLES = false;
std::unique_ptr<Emulator> emulator;
RendererGL* renderer;
static std::unique_ptr<Emulator> emulator;
static RendererGL* renderer;
std::filesystem::path Emulator::getConfigPath() { return std::filesystem::path(savePath / "config.toml"); }
std::filesystem::path Emulator::getAppDataRoot() { return std::filesystem::path(savePath / "Emulator Files"); }