Commit Graph

8316 Commits

Author SHA1 Message Date
Themaister 773295cb28 Move jni stuff to NativeInterface.
Makes it more generic and extensible for the future.
2013-10-14 23:27:18 +02:00
Themaister b5c733f692 Do config readback immediately after running.
Avoids potential issue where game is started right after exiting again.
2013-10-14 23:11:08 +02:00
Themaister 0d1c394325 Flush config to disk after device detection. 2013-10-14 22:45:06 +02:00
Themaister 1908c4cd38 Set default info file path for Android. 2013-10-14 22:28:59 +02:00
Squarepusher 9baba0fc8a Merge pull request #341 from libretro/apk-extract
Extract APK assets from native code
2013-10-14 12:21:44 -07:00
Themaister 960780277a Drop some now useless code. 2013-10-14 21:14:55 +02:00
Themaister 644d45106e Style nit. 2013-10-14 21:09:49 +02:00
Themaister 7df4500024 Use native side asset extraction. 2013-10-14 21:08:41 +02:00
Squarepusher 7df9f53d4f Merge pull request #340 from lioncash/master
[Android] Disable the preference "Automatically detect audio latency" if the Android device running RetroArch is less than Android 4.1.
2013-10-14 10:10:58 -07:00
Themaister 299ef54a54 Add mmap() backend to zlib extract. 2013-10-14 18:10:17 +02:00
Lioncash 1cb397dac7 [Android] Disable the preference "Automatically detect audio latency" if the Android device running RetroArch is less than Android 4.1. Auto detection won't work on those below it. 2013-10-14 11:57:53 -04:00
twinaphex 8b58c39cad (libretro_cores.cfg / Android) Change mupen64 name 2013-10-14 11:34:29 +02:00
twinaphex 2b7c2a7185 (Android Phoenix) Add mupen64 entry to libretro_cores.cfg 2013-10-14 11:22:20 +02:00
Hans-Kristian Arntzen 9da4203886 Merge pull request #339 from lioncash/master
Fix some memory leaks in the core.
2013-10-13 23:58:56 -07:00
Lioncash cae9591c2f Missed a spot for closing file handle fd in function get_sha1. 2013-10-14 00:05:07 -04:00
Lioncash 98bdd6896e Fix a memory leak in function find_first_cue in retrolaunch/cd_detect.c. 2013-10-13 23:24:49 -04:00
Lioncash 51d7ec925e Fix a memory leak in function get_sha1 in retrolaunch/main.c. 2013-10-13 23:22:41 -04:00
Lioncash 83da083a24 Fix a memory leak in function rglCgCreateProgramGroupFromFile in rgl_ps3_cg.cpp. 2013-10-13 23:19:50 -04:00
Lioncash 080436fd23 Remove a redundant if statement in function set_direct_pix_conv in scaler.c. This branch already exists in this if statement chain, see the third else-if statement. 2013-10-13 23:16:12 -04:00
Lioncash b4e5b6bb71 Fix two memory leaks in function align_program in py_state.c 2013-10-13 23:13:38 -04:00
Lioncash 64da817eec Fix a memory leak in function gl_init_font in ps_libdbgfont.c 2013-10-13 23:12:12 -04:00
Squarepusher c0d4f3275d Merge pull request #338 from lioncash/master
Move the settings menu over to one menu, while also being Fragment based.
2013-10-13 20:06:52 -07:00
Lioncash fba46e5e2f [Android] Re-organize config loading so it's neater. 2013-10-13 22:52:14 -04:00
Lioncash 39280b5535 [Android] Remove implementation of OnPreferenceAttachedListener from PreferenceActivity. Not necessary. 2013-10-13 22:48:31 -04:00
Lioncash aa36ba9fad [Android] Update the config file whenever a preference within SharedPreferences has been changed. 2013-10-13 22:06:54 -04:00
ToadKing 73bb9d23e0 add intent and icon for Ouya 2013-10-13 20:48:17 -04:00
Themaister 23069b6146 Log how SRAM is truncated. 2013-10-13 18:53:12 +02:00
Hans-Kristian Arntzen ad3df7077c Merge pull request #337 from notaz/sram
Allow partial SRAM load
2013-10-13 09:53:35 -07:00
Grazvydas Ignotas 0711463c1e Allow partial SRAM load
Different cores that emulate the same system may have slightly different
understanding of SRAM, like it currently is for Genesis Plus GX vs
PicoDrive. Currently Genesis Plus GX uses larger padding, which means it
creates larger files. When loading such file for PicoDrive, current
code refuses to load it and this effectively destroys user's save
because new SRAM file is written on PicoDrive's exit.

To fix this, allow partial load (and print a warning).
2013-10-13 18:42:31 +03:00
Themaister a5045e4052 Clarify input_apply_turbo.. 2013-10-13 10:22:23 +02:00
Themaister 05744ca9c7 Fix condition in RPNG. 2013-10-13 10:19:02 +02:00
ToadKing ca2e2f239a add tool for making Ouya version (needs different package name) 2013-10-12 21:05:08 -04:00
Lioncash 8efd5e47c6 [Android] Add a basic Readme.md to the Android front-end project. 2013-10-11 19:28:35 -04:00
Lioncash 2f74173154 [Android] Add a doc on how to import the project into Eclipse. 2013-10-11 19:19:28 -04:00
Lioncash 6787c3b674 [Android] Remove an unused import. 2013-10-11 18:55:30 -04:00
Lioncash 2770b23e9f [Android] Add a handler for the global config CheckBoxPreference. 2013-10-11 18:48:12 -04:00
Lioncash 1105304df5 [Android] Also update the config if the settings activity gets paused. 2013-10-11 18:22:33 -04:00
Lioncash 8c7437f74f [Android] Save to the config file upon leaving the settings activity. 2013-10-11 18:18:59 -04:00
Lioncash ce42fccdc7 [Android] Very large reworking of the preferences. It uses fragments to handle preferences, not to mention the entirety of the preferences has been moved into a viewpager/tab-nav combo.
This commit breaks per-core configs. Will be fixed very soon.
2013-10-11 17:41:22 -04:00
Squarepusher 7487c666c8 Merge pull request #332 from lioncash/master
[Android] Simplify how ListActivities set their adapters. Also tiny FileWrapper change.
2013-10-11 13:41:49 -07:00
Lioncash 0977f6dc9f [Android] Fix variable accessibility within BackStackItem. These aren't used outside of the class, so they should be made private. 2013-10-11 12:04:34 -04:00
Lioncash b69059629b [Android] Use accessors with FileWrapper.java. Maintains encapsulation. Also make FileWrapper.java implement Comparable, since it already implements compareTo. 2013-10-11 11:58:19 -04:00
Lioncash 4b3f15c904 [Android] Simplify how ListActivities set their adapters. Since they are ListActivities, there is an underlying method for setting the adapters (setListAdapter()), so now we can remove calls that get the ListView object, since we don't need to directly access them now. 2013-10-11 10:42:11 -04:00
Themaister baf694d4f6 Move core_info string to front on Android.
Searching for libretro_ at start of string would cause path to become
empty.
2013-10-11 09:22:54 +02:00
Themaister 48602cbdbb Refactor out to menu_init_core_info. 2013-10-11 09:17:32 +02:00
Themaister b8fbc58e44 Update core info when INFO_DIR changes. 2013-10-11 09:14:31 +02:00
twinaphex f395fcf3db Should save audio mute and state slot in RGUI now too 2013-10-11 01:31:08 +02:00
twinaphex 310f404747 Get rid of MODE_INFO_DRAW 2013-10-11 01:28:26 +02:00
twinaphex 849cfb680e Saves 'Show Framerate' setting to config file now too 2013-10-11 01:19:54 +02:00
twinaphex a35e708335 (core_info) Can now set core info directory from RGUI 2013-10-11 00:36:08 +02:00