Add NES emulation support with bundled FCEUmm core
Implement NesCore with FCEUmm/Nestopia/Mesen libretro core support. Generalize native frontend to handle cores that require ROM data in memory (need_fullpath=false) and move PS1-specific config out of C++ into Ps1Core. Bundle both core .so files as APK assets with automatic extraction. Fix cover art fetching for GoodNES-named ROMs by expanding region codes (U)->(USA, Europe) to match LibRetro thumbnail naming.
This commit is contained in:
@@ -121,4 +121,18 @@ Java_com_lazy_emulate_emulation_NativeLibretro_nativeSetSaveDir(JNIEnv* env, job
|
||||
env->ReleaseStringUTFChars(dir, d);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_lazy_emulate_emulation_NativeLibretro_nativeSetControllerPortDevice(JNIEnv*, jobject, jint port, jint device) {
|
||||
LibretroFrontend::instance().setControllerPortDevice(static_cast<unsigned>(port), static_cast<unsigned>(device));
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_com_lazy_emulate_emulation_NativeLibretro_nativeSetCoreOption(JNIEnv* env, jobject, jstring key, jstring value) {
|
||||
const char* k = env->GetStringUTFChars(key, nullptr);
|
||||
const char* v = env->GetStringUTFChars(value, nullptr);
|
||||
LibretroFrontend::instance().setCoreOption(k, v);
|
||||
env->ReleaseStringUTFChars(value, v);
|
||||
env->ReleaseStringUTFChars(key, k);
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user