From 9dc85a2ab3043c6822c1f2b4da3ea0dc4a412dcf Mon Sep 17 00:00:00 2001 From: meepingsnesroms Date: Sun, 28 Oct 2018 11:32:56 -0700 Subject: [PATCH] Well Android is full speed with out ARM optimization on RetroArch Qt on Android is just defective I guess. --- libretroBuildSystem/installRootedAndroid.sh | 11 +++++++++++ libretroBuildSystem/jni/Android.mk | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 libretroBuildSystem/installRootedAndroid.sh diff --git a/libretroBuildSystem/installRootedAndroid.sh b/libretroBuildSystem/installRootedAndroid.sh new file mode 100755 index 0000000..2d81403 --- /dev/null +++ b/libretroBuildSystem/installRootedAndroid.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd $DIR/jni + +ndk-build clean +ndk-build +adb push ../libs/armeabi-v7a/libretro.so /data/local/tmp/mu_libretro_android.so +adb shell su -c \"mv -f /data/local/tmp/mu_libretro_android.so /data/data/com.retroarch/cores\" +adb shell su -c \"restorecon -R /data/data/com.retroarch\" diff --git a/libretroBuildSystem/jni/Android.mk b/libretroBuildSystem/jni/Android.mk index dd85f58..a0843bd 100644 --- a/libretroBuildSystem/jni/Android.mk +++ b/libretroBuildSystem/jni/Android.mk @@ -44,6 +44,6 @@ include $(CORE_DIR)/build/Makefile.common LOCAL_SRC_FILES += $(SOURCES_C) $(SOURCES_ASM) LOCAL_CFLAGS += -O3 -std=gnu99 -funroll-loops -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DGIT_VERSION=\"$(GIT_VERSION)\" $(INCFLAGS) -#LOCAL_CFLAGS += -ffast-math +#LOCAL_CFLAGS += -ffast-math #this emu uses doubles to track all the speed ratio calculations, this flag breaks things include $(BUILD_SHARED_LIBRARY)