Commit Graph

35 Commits

Author SHA1 Message Date
Lioncash 54418c2c66 Android: Minor changes
- Use the character version of lastIndexOf
- Use a StringBuilder instead of a raw String. Doesn't destroy/recreate
  the string every time we append to it.
2014-07-17 16:56:54 -04:00
Themaister 09443d88c2 Android: Remove useless getDisplayRefreshRate
Interferes with detection in native activity.
2014-06-21 17:05:04 +02:00
Themaister 9a8147fe93 Actually read back RetroArch config.
onDestroy() is never called for some unknown reason, probably exit() in
NDK. Even so, finish() from UI thread via JNI doesn't work either <_<.
2014-06-20 14:26:26 +02:00
twinaphex c090ee634c (Android) Remove debug_input_enable 2014-06-20 07:03:06 +02:00
twinaphex 5216e90c12 (Android) - EGL context cleanups
- Add shared context support
2014-06-20 04:35:12 +02:00
Themaister 5530de0fb7 Android: Fix handling of libretro_path/libretro_directory. 2014-06-16 21:50:29 +02:00
twinaphex 97c5b9976d (Menu) Change some RGUI references to Menu 2014-06-13 18:47:24 +02:00
twinaphex 94cd38f628 (Android) Sets default savedir/savestate/system directory paths now to internal sandboxed
app dir (Android 4.4.2 and so on no longer allow writing to SD card)
2014-06-13 03:52:17 +02:00
twinaphex b3ad2913a4 (Android frontend) Cleanups 2014-06-13 03:06:29 +02:00
twinaphex d476f0df91 Revert "Remove g_settings.audio.block_frames - never used"
This reverts commit 9ed3f3847c.
2014-06-13 02:15:10 +02:00
twinaphex ddf0dcb165 (Android) Build fixes/cleanups to frontend 2014-06-13 01:10:14 +02:00
twinaphex 86ee594b68 (Android frontend) Take out audio_latency_auto - now handled in native activity 2014-06-13 00:36:58 +02:00
twinaphex 9ed3f3847c Remove g_settings.audio.block_frames - never used 2014-06-13 00:17:23 +02:00
twinaphex 34f161f1c9 (Android) fix input overlay enable 2014-06-12 23:23:04 +02:00
twinaphex 2f3af72501 Build fixes 2014-06-12 22:31:25 +02:00
twinaphex 9b6703b3ad (Android frontend) audio_latency is now set in native activity instead of Android
frontend
2014-06-12 19:07:27 +02:00
twinaphex 08201cf55b (Android frontend) Cleanup 2014-06-12 19:03:09 +02:00
Themaister 3750ccbc9d Android/Phoenix: Only set buttons to config if actually set by user. 2014-06-11 15:48:15 +02:00
twinaphex b882fd3ef7 (Android frontend) Cleanup input_back_behavior 2014-06-11 07:39:08 +02:00
twinaphex d7c327708f (Android frontend) Get rid of icade and back_button_behavior 2014-06-11 01:56:30 +02:00
twinaphex 6ce9c64e04 (Android) Change default overlay for Android to snes/snes.cfg 2013-12-28 03:14:21 +01:00
twinaphex d1bdd4bd97 (Android/Apple) Set default opacity to 0.7f 2013-12-25 02:41:37 +01:00
twinaphex f5edd42535 (Android Phoenix) Add 'permissions' to ModuleWrapper etc. 2013-12-14 21:51:21 +01:00
twinaphex 6615f57971 (Android) Ignore FEATURE.LOW_AUDIO_LATENCY - devices like Nvidia Shield set it
to false while having frames per buffer values that are seen as ideal
- so setting it to true will always use those values now.
2013-12-06 21:17:19 +01:00
twinaphex 0b7268dfac (Android) Phoenix - get rid of warnings 2013-11-22 23:15:38 +01:00
Lioncash 114cf4e926 [Android] Initial huge underlying UI update:
- The UI is now mostly Fragment-centric (finally!)
- The Load Core, Load Game, Load Game (History) are now DialogFragments.
- The directory activities are killed off and consolidated into one fragment named DirectoryFragment.

DirectoryFragment is now a self-contained instantiable DirectoryFragment that can be instantiated anywhere by doing roughly the following.

DirectorFragment dFrag = DirectoryFragment.newInstance(/* Resource ID for a string title here*/);
dFrag.show(getFragmentManager(), "tag");

There are also other methods that were modified within the DirectoryFragment, such as addAllowedExt and disAllowedExt being changed to support a variable amount of arguments. This way, multiple calls of the same function aren't necessary in the case of adding multiple extensions, as well as supporting the case where only one extension is added.

DirectoryFragment also has a new interface added to it called OnDirectoryFragmentClosedListener. Say you have a DirectoryFragment instance, but want to use the selected item's path for something *after* the dialog has closed, with this interface, it is now possible. Just implement this interface within an Activity or Fragment, and then set the DirectoryFragment to use the listener through setOnDirectoryFragmentClosedListener() method.

Now what happens if this isn't set, wouldn't it be pointless to even use a DirectoryFragment in this case?
Not necessarily. What if you only wanted to save the selected item into the applications SharedPreferences?
This is a situation where it would be unnecessary to need that interface. So, to make a DirectoryFragment.java for the sole purpose of saving a selected directory/file path to the SharedPreferences, you would do this:

DirectoryFragment dFrag = DirectoryFragment.newInstance(/* Resource ID to a string title here*/);
dFrag.setPathSettingKey("key to store value in SharedPreferences at");
dFrag.show(getFragmentManager(), "tag");

Outside of these major changes, large portions of the code outside of this were simplified.
2013-11-17 02:37:33 -05:00
Lioncash 801af3be81 [Android] Add rewinding granularity to the general settings. 2013-11-04 11:19:50 -05:00
Squarepusher bf4a96d22f Merge pull request #363 from lioncash/core-manager
Core Manager + core info file support.
2013-10-31 07:18:31 -07:00
Lioncash a9cd6f8406 [Android] Fix accessibility scope of a field in KeyBindPreference.java. This doesn't need to be package-private, but private. It should not be able to be directly accessed. 2013-10-31 07:58:09 -04:00
Lioncash 0cd372c3c0 [Android] Validate constructor parameters in ConfigFile. 2013-10-31 07:50:05 -04:00
Lioncash 03260c3e6f [Android] Change ConfigFile's get[x] methods to throw IllegalArgumentExceptions instead on NumberFormatExceptions. It was incorrect to throw that exception, since it had nothing to do with how the number was formatted in the string.
If a number formatting problem occurred, [type object].parse[type]() methods would throw a NumberFormatException.

Also fixed a slight typo in CoreManagerActivity.
2013-10-31 07:45:09 -04:00
Lioncash bfdc1e0e60 [Android] Move the main activity to use Fragments.
Cleaned up the main activity as well.
2013-10-31 04:00:33 -04:00
Lioncash 7c07e35f4a [Android] Implement info file support for Android. Also modified the core manager to adapt to this.
- Added JavaDoc to ModuleWrapper and ConfigFile as well.
- Did some tiny simplifications with ConfigFile.java
- Handle the IOExceptions with the parameterized constructor. The only reason this could fail is fail is if the InputStream suddenly closed for an arbitrary reason.
2013-10-31 01:54:42 -04:00
twinaphex 559a91ff1f (Android Phoenix) Clean up two warnings 2013-10-30 23:20:07 +01:00
twinaphex 967e1e2846 (Android) Change packagename from org.retroarch to com.retroarch 2013-10-30 03:06:54 +01:00