Commit Graph

878 Commits

Author SHA1 Message Date
twinaphex 9e4b672634 Move cores to an 'asset' folder - create a directory in phoenix/assets folder,
call it 'cores', move all the cores there. The APK extract and retroarch activity
libraries still need to remain in phoenix/libs. This will allow Lioncash to make
his core manager be able to uninstall cores etc.
2013-10-30 01:07:49 +01:00
Squarepusher 3bae1122de Update Building in Eclipse.md 2013-10-23 10:42:24 +02:00
Chris Merrett 3ec7065238 Added Android support for cheap G910 gamepad. 2013-10-22 22:31:48 +01:00
twinaphex d2c87e3039 Convert most C99-style for loop initial declarations to C89-compliant
ones
2013-10-22 15:08:17 +02:00
Lioncash 14992ea911 [Android] Update the documentation with better Eclipse instructions. 2013-10-21 22:27:19 -04:00
Lioncash eec6faf7a1 [Android] Update documentation to explain how to build the JNI portions of the Android front-end. 2013-10-21 22:02:33 -04:00
ToadKing 57677f8d2a [ANDROID] fix compile on windows
broken make in android toolkit can't have paths with colons in LOCAL_SRC_FILES, just assume we're getting called from the right directory
2013-10-21 21:38:54 -04:00
Lioncash 21f7b63417 [Android] Revise core location in Building in Eclipse.md 2013-10-21 21:05:36 -04:00
Lioncash e225bc087f [Android] Fix the markdown syntax for the numeric list in the build instructions. Also minor text change. 2013-10-19 23:10:41 -04:00
Lioncash 6273928755 [Android] Update the build instruction file for Android on where to place built cores. 2013-10-19 23:05:35 -04:00
Lioncash e6917787ee [Android] Place the ListPreference for aspect ratio at the top of its PreferenceCategory. Makes it look cleaner in terms of how the preferences are laid out. 2013-10-17 02:05:08 -04:00
Lioncash 7c0f177090 [Android] Edit a string so it fits the preferences better. 2013-10-17 01:51:17 -04:00
Lioncash c26a6f8015 [Android] Clarify the preference categories in the XML better. 2013-10-17 01:46:14 -04:00
Lioncash 783f493252 [Android] Remove a pointless throws for IOException in ModuleWrapper. There's no way an I/O exception can be thrown in this constructor. 2013-10-15 23:07:36 -04:00
Lioncash d3c96cfaed [Android] Remove R.java and BuildConfig.java from the appcompat lib. These are generated files, so there's no need to keep them in the repo. They will be regenerated upon builds. 2013-10-15 11:31:36 -04:00
Lioncash e622fc9f4d [Android] Remove the need for RefreshRateSetOS. This can be done with a preference listener within VideoPreferenceFragment. 2013-10-15 10:54:40 -04:00
Lioncash b1a48dea51 [Android] Remove the need for IMEActivity. We can also do this within InputPreferenceFragment. 2013-10-15 10:40:15 -04:00
Lioncash 9121aea91e [Android] Eliminate the need for the ReportIME activity. We can just add a listener for the preference within InputPreferenceFragment. 2013-10-15 10:28:02 -04:00
Lioncash 34e447cd4d [Android] No need to get the base context in ShaderActivity.java for getting application info. Since ShaderActivity.java is (obviously) an Activity. It can act as it's own Context. 2013-10-15 03:12:15 -04:00
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
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
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
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
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
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
Squarepusher c23fc0546c Merge pull request #331 from lioncash/master
[Android] Minor changes
2013-10-10 08:25:55 -07:00
twinaphex 33de14a6ca Revert "(Android) Some preliminary changes for new libretro core naming convention - still not"
This reverts commit 1bcf1afc9e.

Conflicts:
	android/phoenix/src/org/retroarch/browser/CoreSelection.java
2013-10-10 16:49:27 +02:00
twinaphex 6f0018b16e Revert "(Android) Some preliminary changes for new libretro core naming convention - still not"
This reverts commit 1bcf1afc9e.

Conflicts:
	android/phoenix/src/org/retroarch/browser/CoreSelection.java
2013-10-10 16:47:44 +02:00
twinaphex f35fc9e1f7 Revert "(Android) Changes for filename naming convention changes"
This reverts commit d9b909aadb.
2013-10-10 16:47:19 +02:00
Lioncash e177f6f35a [Android] Add comments to prefs.xml to clarify which section starts where within the XML. 2013-10-10 10:31:03 -04:00
Lioncash 6b5f21479e [Android] No need to call flush() before closing a stream. close() calls the flush method before actually closing the stream. 2013-10-10 10:12:09 -04:00
Lioncash 05f6226544 [Android] Made it unnecessary for HistorySelection.java, CoreSelection.java, and DirectoryActivity.java to implement an AdapterView. Since these now extend ListActivity, they can just override the method onListItemClick(). 2013-10-10 02:39:01 -04:00
Lioncash 5df0f7e2d1 [Android] Made DirectoryActivity extend a ListActivity, since that's basically what its purpose is - to act as a list view. 2013-10-10 02:27:58 -04:00
twinaphex d9b909aadb (Android) Changes for filename naming convention changes 2013-10-10 04:25:32 +02:00
twinaphex 1bcf1afc9e (Android) Some preliminary changes for new libretro core naming convention - still not
working here
2013-10-10 03:41:53 +02:00
Lioncash 99de59d71e [Android] Missed a string key within updateConfigFile in UserPreferences.java. Fixed that. 2013-10-09 00:48:55 -04:00
Lioncash e71bce0cbd [Android] Simplify LayoutInflater retrieval for KeyBindPreference.java and SeekbarPreference.java.
Simplify application info retrieval in OverlayActivity.java.
2013-10-09 00:26:07 -04:00
Lioncash 16127e046c [Android] Join declaration and assignment of a ConfigFile object in CoreSelection.java. Also made two variables final. 2013-10-08 23:54:52 -04:00
Lioncash a16be6af65 [Android] Remove a redundant context variable in ReportIME.java. 2013-10-08 23:52:10 -04:00
Lioncash 2464e30ca5 [Android] Bump the application manifest targetSDKVersion tag from 17 to 18, since 4.3 is the latest API level. 2013-10-08 23:45:11 -04:00
Lioncash 84ee7658c2 [Android] Simplify another conversion of a double to a String within DisplayRefreshRateTest.java. Removed an unused import from RefreshRateSetOS.java. 2013-10-08 23:39:10 -04:00
Lioncash 73f97281fe [Android] Simplify WindowManager retrieval within RefreshRateSetOS.java. Also simplified the conversion of a double to a String.
No need to first turn the double into the object Double. Double has a toString() method for this.
2013-10-08 23:33:00 -04:00
Lioncash ac2c9840ff [Android] Simplify LayoutInflater retrieval within IconAdapter.java. Also removed abstract from the methods within the interface IconAdapterItem. Methods within an interface are implicitly abstract.
Joined the declaration and assignment of an Intent within HistorySelection.java.
2013-10-08 23:30:15 -04:00
Lioncash 8fb23d0fcc [Android] Very minor clean-up in MainMenuActivity.java and CoreSelection.java. 2013-10-08 23:11:46 -04:00
Lioncash c7ff040bf3 [Android] Get rid of getPreferences from MainMenuActivity.java. No longer needed. Now located within UserPreferences.java. 2013-10-08 23:05:54 -04:00
Lioncash 8112c1e36f [Android] Move readCPUInfo into UserPreferences.java. Also, a little bit of documentation in UserPreferences.java. 2013-10-08 22:55:07 -04:00
Lioncash da6b6f4f50 [Android] Remove some functions I missed when cleaning up MainMenuActivity.java. These are moved into UserPreferences. They aren't needed in here any more. 2013-10-08 22:22:40 -04:00
Lioncash ed649b44ab [Android] Initial implementation of new UserPreferences. Unifies preference loading and saving into one central class and moves it out of the MainMenuActivity.java. 2013-10-08 22:11:29 -04:00
Lioncash 010e691993 [Android most of new UserPreferences class finish. Not implemented however. 2013-10-08 20:52:44 -04:00
Lioncash 348cdb32b6 Fix a typo in the class name checking in function startActivity in MainMenuActivity.java. 2013-10-08 19:53:26 -04:00
Lioncash 1cc576b20f [Android] Clean up the manifest a little. 2013-10-08 19:51:37 -04:00
Lioncash 547219c244 [Android] Put the directory activities into a separate package to keep them separate from the rest of the files. Do the same for preference classes as well. 2013-10-08 19:50:23 -04:00
Lioncash f1b6f95c40 [Android] Get rid of a typecast om ConfigFile.java. 2013-10-08 19:25:40 -04:00
twinaphex abb829283b Take out messy Dpad emulation code - this will require an entire
rewrite where we come up with a solution that works the same across
console/PC/mobile
2013-10-05 20:55:37 +00:00
twinaphex f44d6f3526 Add more info files 2013-10-05 03:55:22 +00:00
Lioncash 0d869aa768 [Android] Simplify conditional statement within DirectoryActivity.java. This is already checked through the allowFile variable. So if that is true, then it's sensible to assume this is true as well. 2013-09-27 09:38:19 -04:00
Lioncash 4718bc63af Catch a more specific exception in HistoryWrapper.java. The only possible exception that can be thrown here is IndexOutOfBoundsException. 2013-09-27 09:02:22 -04:00
Lioncash 1f6161b45e Missed one string in DisplayRefreshRateTest.java. Now everything that matters should be within strings.xml now. 2013-09-27 02:30:38 -04:00
Lioncash 9310e1face RetroArch now fully capable of multi-language support. 2013-09-27 02:24:46 -04:00
Lioncash a33863f0f2 Initial basic multi-language support. 2013-09-27 00:58:05 -04:00
Lioncash a04e2ff11a Use a precomposed ellipsis for the asset extraction string in strings.xml 2013-09-27 00:24:53 -04:00
Lioncash 68b252da75 Remove non-existant activities from the manifest. 2013-09-27 00:16:16 -04:00
Lioncash be32d28dcd Generic cleanup and simplifications.
Just some really generic things that simplify existing code among other things.
2013-09-27 00:13:37 -04:00
Lioncash 14c3892208 Make classes which are not extended final. This gives a clear indication of such. 2013-09-27 00:00:51 -04:00
twinaphex 387701b55e (Android) Bump up version code - add more descriptions for cores 2013-09-23 03:54:28 +02:00
twinaphex 737520143f (Android) Add FC30 Gamepad to autodetection list (untested) 2013-09-19 02:13:34 +02:00
twinaphex a36f7a6b9a (Anroid) Add Wikipad (untested/preliminary) to autodetection list 2013-09-19 02:07:49 +02:00
twinaphex 650c6f4885 (Android) Add Much iReadGo i5 to autodetection list 2013-09-19 01:35:59 +02:00
Themaister 8489440d7e Use Integer.parseInt. 2013-09-14 15:46:19 +02:00
twinaphex ac9e0025e2 (Android Phoenix) Add 96ms audio latency option as well 2013-09-14 15:03:20 +02:00
twinaphex 7683efcec4 (Android) Set ANALOG_DPAD_NONE for Xperia Play 2013-09-14 14:55:09 +02:00
twinaphex 0245f926d1 (Android Phoenix) Set configurable audio latency 2013-09-13 15:57:13 +02:00
twinaphex e6f527e992 (Android Phoenix) Add ability to set automatic audio latency option on/off 2013-09-13 15:17:57 +02:00
twinaphex 847f7f8d05 (Android Phoenix) Set video_threaded to false and set refresh rate of 59.19Hz for Xperia
Play
2013-09-12 20:02:36 +02:00
twinaphex 0d873654cc (Android Phoenix) Add Xperia Play detection based on MODEL string 2013-09-11 14:07:54 +02:00
twinaphex 0b45fb1483 (Android Phoenix) Set default values for ListPreferences 2013-09-11 11:00:43 +02:00
ToadKing ad7c442e8c [Android] bump version number 2013-09-09 19:28:50 -04:00
Cray Elliott ba095dca79 Fix compilation error introduced by analog overlay changes 2013-09-06 01:43:55 -07:00
twinaphex ead5a3b3ac (Android) comment readBackInt for input_back_behavior - this crashes hard for now 2013-08-28 02:12:40 +02:00