From ac8448c844ec0e0fda7cf2f6237dc6d3ac472799 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Jul 2013 21:06:41 +0200 Subject: [PATCH] (Android)Add meancoot's andretro frontend - will need some heavy maintenance to make up-to-date again --- android/andretro/AndroidManifest.xml | 31 + android/andretro/README | 6 + android/andretro/ant.properties | 17 + .../andretro/assets/libretro_fceu-next.so.xml | 19 + .../assets/libretro_final_burn_alpha.so.xml | 28 + .../andretro/assets/libretro_gambatte.so.xml | 20 + .../assets/libretro_genesis-plus-gx.so.xml | 23 + .../andretro/assets/libretro_prboom.so.xml | 29 + .../assets/libretro_snes9x-next.so.xml | 24 + .../andretro/assets/libretro_stella.so.xml | 28 + .../andretro/assets/libretro_vba-next.so.xml | 22 + android/andretro/build.xml | 92 +++ android/andretro/ic_launcher-web.png | Bin 0 -> 37099 bytes android/andretro/jni/Android.mk | 23 + android/andretro/jni/Application.mk | 1 + android/andretro/jni/Common.h | 177 ++++++ android/andretro/jni/Driver.cpp | 558 ++++++++++++++++ android/andretro/jni/Library.h | 109 ++++ android/andretro/jni/Rewinder.h | 118 ++++ android/andretro/jni/libretro.h | 599 ++++++++++++++++++ android/andretro/jni/modules/Android.mk | 6 + android/andretro/libs/android-support-v4.jar | Bin 0 -> 349252 bytes android/andretro/lint.xml | 6 + android/andretro/proguard-project.txt | 20 + android/andretro/project.properties | 14 + .../res/drawable-hdpi/ic_launcher.png | Bin 0 -> 3014 bytes .../res/drawable-ldpi/ic_launcher.png | Bin 0 -> 1504 bytes .../res/drawable-mdpi/ic_launcher.png | Bin 0 -> 1969 bytes .../andretro/res/drawable-nodpi/button.png | Bin 0 -> 214 bytes .../andretro/res/drawable-nodpi/buttonduo.png | Bin 0 -> 310 bytes android/andretro/res/drawable-nodpi/dpad.png | Bin 0 -> 423 bytes android/andretro/res/drawable-nodpi/file.png | Bin 0 -> 1948 bytes .../andretro/res/drawable-nodpi/folder.png | Bin 0 -> 2323 bytes .../res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 4006 bytes .../andretro/res/layout/dialog_focus_hack.xml | 10 + .../andretro/res/layout/icon_grid_item.xml | 23 + .../andretro/res/layout/icon_grid_list.xml | 8 + android/andretro/res/layout/line_list.xml | 7 + .../andretro/res/layout/line_list_item.xml | 23 + android/andretro/res/layout/retro_display.xml | 13 + android/andretro/res/menu/directory_list.xml | 8 + android/andretro/res/menu/retro_display.xml | 14 + .../andretro/res/raw/default_retro_pad.xml | 7 + android/andretro/res/raw/fragment_shader.glsl | 9 + android/andretro/res/raw/vertex_shader.glsl | 14 + android/andretro/res/values/strings.xml | 26 + android/andretro/res/xml/preferences.xml | 20 + .../src/org/andretro/QuestionDialog.java | 81 +++ .../src/org/andretro/RetroDisplay.java | 225 +++++++ .../src/org/andretro/WindowManager.java | 224 +++++++ .../andretro/browser/DirectoryActivity.java | 177 ++++++ .../src/org/andretro/browser/IconAdapter.java | 79 +++ .../org/andretro/browser/ModuleActivity.java | 116 ++++ .../src/org/andretro/browser/StateList.java | 94 +++ .../src/org/andretro/emulator/Commands.java | 188 ++++++ .../src/org/andretro/emulator/Doodads.java | 199 ++++++ .../src/org/andretro/emulator/Game.java | 167 +++++ .../src/org/andretro/emulator/ModuleInfo.java | 107 ++++ .../src/org/andretro/input/view/Button.java | 29 + .../andretro/input/view/ButtonDiamond.java | 42 ++ .../org/andretro/input/view/ButtonDuo.java | 35 + .../org/andretro/input/view/InputGroup.java | 186 ++++++ .../org/andretro/settings/ButtonSetting.java | 86 +++ .../andretro/settings/SettingActivity.java | 76 +++ .../src/org/andretro/system/Audio.java | 72 +++ .../src/org/andretro/system/CommandQueue.java | 74 +++ .../src/org/andretro/system/Input.java | 191 ++++++ .../src/org/andretro/system/Logger.java | 11 + .../src/org/andretro/system/PngWriter.java | 9 + .../src/org/andretro/system/Present.java | 124 ++++ .../org/andretro/system/video/VertexData.java | 148 +++++ .../andretro/src/org/libretro/LibRetro.java | 319 ++++++++++ 72 files changed, 5211 insertions(+) create mode 100644 android/andretro/AndroidManifest.xml create mode 100644 android/andretro/README create mode 100644 android/andretro/ant.properties create mode 100644 android/andretro/assets/libretro_fceu-next.so.xml create mode 100644 android/andretro/assets/libretro_final_burn_alpha.so.xml create mode 100644 android/andretro/assets/libretro_gambatte.so.xml create mode 100644 android/andretro/assets/libretro_genesis-plus-gx.so.xml create mode 100644 android/andretro/assets/libretro_prboom.so.xml create mode 100644 android/andretro/assets/libretro_snes9x-next.so.xml create mode 100644 android/andretro/assets/libretro_stella.so.xml create mode 100644 android/andretro/assets/libretro_vba-next.so.xml create mode 100644 android/andretro/build.xml create mode 100644 android/andretro/ic_launcher-web.png create mode 100644 android/andretro/jni/Android.mk create mode 100644 android/andretro/jni/Application.mk create mode 100644 android/andretro/jni/Common.h create mode 100644 android/andretro/jni/Driver.cpp create mode 100644 android/andretro/jni/Library.h create mode 100644 android/andretro/jni/Rewinder.h create mode 100644 android/andretro/jni/libretro.h create mode 100644 android/andretro/jni/modules/Android.mk create mode 100644 android/andretro/libs/android-support-v4.jar create mode 100644 android/andretro/lint.xml create mode 100644 android/andretro/proguard-project.txt create mode 100644 android/andretro/project.properties create mode 100644 android/andretro/res/drawable-hdpi/ic_launcher.png create mode 100644 android/andretro/res/drawable-ldpi/ic_launcher.png create mode 100644 android/andretro/res/drawable-mdpi/ic_launcher.png create mode 100644 android/andretro/res/drawable-nodpi/button.png create mode 100644 android/andretro/res/drawable-nodpi/buttonduo.png create mode 100644 android/andretro/res/drawable-nodpi/dpad.png create mode 100755 android/andretro/res/drawable-nodpi/file.png create mode 100755 android/andretro/res/drawable-nodpi/folder.png create mode 100644 android/andretro/res/drawable-xhdpi/ic_launcher.png create mode 100644 android/andretro/res/layout/dialog_focus_hack.xml create mode 100644 android/andretro/res/layout/icon_grid_item.xml create mode 100644 android/andretro/res/layout/icon_grid_list.xml create mode 100644 android/andretro/res/layout/line_list.xml create mode 100644 android/andretro/res/layout/line_list_item.xml create mode 100644 android/andretro/res/layout/retro_display.xml create mode 100644 android/andretro/res/menu/directory_list.xml create mode 100644 android/andretro/res/menu/retro_display.xml create mode 100644 android/andretro/res/raw/default_retro_pad.xml create mode 100644 android/andretro/res/raw/fragment_shader.glsl create mode 100644 android/andretro/res/raw/vertex_shader.glsl create mode 100644 android/andretro/res/values/strings.xml create mode 100644 android/andretro/res/xml/preferences.xml create mode 100644 android/andretro/src/org/andretro/QuestionDialog.java create mode 100644 android/andretro/src/org/andretro/RetroDisplay.java create mode 100644 android/andretro/src/org/andretro/WindowManager.java create mode 100644 android/andretro/src/org/andretro/browser/DirectoryActivity.java create mode 100644 android/andretro/src/org/andretro/browser/IconAdapter.java create mode 100644 android/andretro/src/org/andretro/browser/ModuleActivity.java create mode 100644 android/andretro/src/org/andretro/browser/StateList.java create mode 100644 android/andretro/src/org/andretro/emulator/Commands.java create mode 100644 android/andretro/src/org/andretro/emulator/Doodads.java create mode 100644 android/andretro/src/org/andretro/emulator/Game.java create mode 100644 android/andretro/src/org/andretro/emulator/ModuleInfo.java create mode 100644 android/andretro/src/org/andretro/input/view/Button.java create mode 100644 android/andretro/src/org/andretro/input/view/ButtonDiamond.java create mode 100644 android/andretro/src/org/andretro/input/view/ButtonDuo.java create mode 100644 android/andretro/src/org/andretro/input/view/InputGroup.java create mode 100644 android/andretro/src/org/andretro/settings/ButtonSetting.java create mode 100644 android/andretro/src/org/andretro/settings/SettingActivity.java create mode 100644 android/andretro/src/org/andretro/system/Audio.java create mode 100644 android/andretro/src/org/andretro/system/CommandQueue.java create mode 100644 android/andretro/src/org/andretro/system/Input.java create mode 100644 android/andretro/src/org/andretro/system/Logger.java create mode 100644 android/andretro/src/org/andretro/system/PngWriter.java create mode 100644 android/andretro/src/org/andretro/system/Present.java create mode 100644 android/andretro/src/org/andretro/system/video/VertexData.java create mode 100644 android/andretro/src/org/libretro/LibRetro.java diff --git a/android/andretro/AndroidManifest.xml b/android/andretro/AndroidManifest.xml new file mode 100644 index 0000000000..511aa4034c --- /dev/null +++ b/android/andretro/AndroidManifest.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/android/andretro/README b/android/andretro/README new file mode 100644 index 0000000000..b060895c53 --- /dev/null +++ b/android/andretro/README @@ -0,0 +1,6 @@ +Building: + +* Put any compiled module libraries in Andretro/jni/modules, the file must be named like libretro_{MODNAME}.so. +* Ensure a matching libretro_{MODNAME}.so.xml exists in the Andretro/assets directory. The xml file contains basic information used by the file browser before the .so itself is loaded. +* In the Andretro directory, run the ndk-build script supplied with the Android NDK. +* In the Andretro directory, run 'ant debug install' to install to the device. The java code can alternatively be built with the included eclipse project. diff --git a/android/andretro/ant.properties b/android/andretro/ant.properties new file mode 100644 index 0000000000..b0971e891e --- /dev/null +++ b/android/andretro/ant.properties @@ -0,0 +1,17 @@ +# This file is used to override default values used by the Ant build system. +# +# This file must be checked into Version Control Systems, as it is +# integral to the build system of your project. + +# This file is only used by the Ant script. + +# You can use this to override default values such as +# 'source.dir' for the location of your java source folder and +# 'out.dir' for the location of your output folder. + +# You can also use it define how the release builds are signed by declaring +# the following properties: +# 'key.store' for the location of your keystore and +# 'key.alias' for the name of the key to use. +# The password will be asked during the build when you use the 'release' target. + diff --git a/android/andretro/assets/libretro_fceu-next.so.xml b/android/andretro/assets/libretro_fceu-next.so.xml new file mode 100644 index 0000000000..7c220b7e50 --- /dev/null +++ b/android/andretro/assets/libretro_fceu-next.so.xml @@ -0,0 +1,19 @@ + + + + + + + +