summaryrefslogtreecommitdiff
path: root/Source/Android/src
AgeCommit message (Collapse)Author
2013-08-19[Android] Remove the loading toast messages from the UI. These really don't ↵Lioncash
need to be here since the things they were used for took very, very little time to load.
2013-08-19[Android] Decouple Dolphin.ini config file saving from GameListActivity. It ↵Lioncash
doesn't make sense to save the config AFTER control is returned from PrefsFragment to GameListActivity, since the main purpose of PrefsFragment is to handle the user settings. So, instead, we call SaveConfigToDolphinIni() in the PrefsFragment.onDestroy() method. This way, when the PrefsFragment object is being 'destroyed', it will write the settings to the ini.
2013-08-19[Android] Simplify saving settings to the ini file. Since the setting names ↵Lioncash
are known, there's no reason to loop through them. This will likely be simplified further very soon.
2013-08-19[Android] Change the settings menu a little more. Instead of the settings ↵Lioncash
being a single view with settings from all components being displayed, I have broken it into sections. This future-proofs the settings menu in the sense that it won't get cluttered before people start asking "Hey, shouldn't this be broken into sections?". As of this commit, it is broken into CPU Settings and Video Settings. I also simplified the code that is responsible for setting the valid CPU cores and video backends by simply making UI string arrays that get chosen, based on the platform the Android device is running on.
2013-08-18[Android] Catch a more specific exception type (UnsatisfiedLinkError) when ↵Lioncash
trying to load the main native Dolphin 'library'. Also made the logging tag more specific. It's generally bad to catch Exception because it's not very specific for the person reading the code. It doesn't say why that exception might have happened, it just indicates it's possible for an Exception to happen, which is quite general.
2013-08-17[Android] Make the banners display a little larger. Now they don't look like ↵Lioncash
tiny icons in the game list.
2013-08-17[Android] Fix Wii games.Ryan Houdek
2013-08-17[Android] Prevent duplicate duplicate items from being in the game list at ↵Lioncash
one time. Previously it was possible for a game with the same path and name to be in the list as another. This is annoying because duplicates ae (obviously) no different from the initial item. This prevents duplicates from entering the list. The way this works is: 1. We get the final list of items to add to the list. 2. Loop through it using two indices, which, for this explanation I'll call [item] and [itemAfter] We compare path name at item with index [item] and the path name at item with index [itemAfter] To phrase this numerically comparison works like so: for (int i = 0; i < listSize; i++) { if (i+1 < listSize) item[i].getPath().equals(item[i+1].getPath()) } 3. For each path comparison that is true, remove item at [indexNext].
2013-08-17[Android] Change the Game List items to be formatted similarly to how the ↵Lioncash
folder browser is. Also ensure the 'no banner' icon scales down to the same size as the other banners.
2013-08-17[Android] Simplify if statement conditions for the item click listener in ↵Lioncash
FolderBrowser.java. Since FolderBrowserItems have an 'isDirectory()' method, that's all we need to care about now. There's no need to check subtitles to determine if an item is a directory anymore.
2013-08-17[Android] Shorten FolderBrowserItem's method 'isValidItem()' into ↵Lioncash
'isValid()' makes more sense and less redundancy in terms of 'item.isValidItem()' -> 'item.isValid()'
2013-08-17[Android] FolderBrowserItem objects don't need to store a context.Lioncash
Removed the requirement to pass a context in the constructors. Also cleaned out unnecessary imports.
2013-08-15[Android] Fix a bug where the name would display incorrectly in the game list.Lioncash
Completely missed the 'this.' on the variable. My bad.
2013-08-14[Android] Remove the subtitles on all folders in the folder browser. No need ↵Lioncash
to have the subtitle "Folder" when it's visibly indicated by the icon of a folder next to it. Now it looks like this: http://i.imgur.com/CbUSqgg.png
2013-08-14[Android] General formatting clean-up.Lioncash
Made some class variables final, since they should convey that they cannot be changed after the first assignment. Made the formatting consistent between files.
2013-08-14[Android] Fix the gamepad settings view inflation.Lioncash
In some cases, it would fail to inflate correctly in the sense that it would only show the binding status and not the name of the actual control that was being binded.
2013-08-14[Android] Correct the accessibility scope of a method and variable in ↵Lioncash
InputConfigFragment.java. Also, join a variable's declaration and assignment in the onMotionEvent() function. If no explicit accessibility term (private, protected, public, etc) is given, then the permission level is set to something called 'package-private' which means it is set to the scope of the whole package. So technically any class could have access to this method and variable, which is likely not what we want.
2013-08-14[Android] Add 'final' to all of the class declarations.Lioncash
This prevents inheritance of the classes (will throw a compiler error if you try and extend any of the classes). This is mainly syntactical sugar and form. Nothing major.
2013-08-13[Android] Make the file browser look much more nice and user friendly to use.Lioncash
This is what it now looks like: http://i.imgur.com/KOZgA1i.png As usual, if any bugs arise from this rather large change. Please report it so I can fix it.
2013-08-13[Android] Integer.toString isn't required in this string declaration. ↵Lioncash
Concatenation handles this. For example: "string" + 1 will just be concatenated as "string1" implicitly.
2013-08-13[Android] Clean up function SupportsGLES3 in PrefsFragment.java a little bit.Lioncash
2013-08-13[Android] Some tiny cleanups in DolphinEmulator.javaLioncash
- Join variable declaration and assignments in function onTouchEvent() - Change a for-loop into a foreach loop in dispatchGenericMotionEvent(). Makes the loop body a single statement.
2013-08-13Simplify asset copying code a little bit in DolphinEmulator.javaLioncash
Since the directories are already cached (with smaller variable names), use these instead so we can shorten the length of each line.
2013-08-13[Android] Clean up the function CopyAsset in DolphinEmulator.java.Lioncash
[streamtype].flush() is called when [streamtype].close() is called. No need to null the references either after calling close(), the garbage collection will take care of it.
2013-08-13[Android] Change the name of a variable in FolderBrowser.java to better ↵Lioncash
reflect its purpose Compressed file formats are not valid, so it's best to rename this to invalidExts.
2013-08-12[Android] Multi-language support (or at least the basic foundation of it).Lioncash
Added an example translation (Japanese). So now the Android version can both display in English and Japanese, depending on what the Android device's system language is set to. Also did a tiny clean-up of InputConfigItem.java so that the parameters are slightly more descriptive. Now, to do a translation in [x] language, all you have to do is take the normal English strings.xml and translate the XML entries into said language, and simply make a folder in the /res/ sub-directory in the form of values-[region code]. IE) With the Japanese translation, it is in the folder /res/values-ja No configuration other than that is needed. After doing the above, the language should load fine on any device when set to that specific system language. By default, if a translation file does not exist for a given system language. The app will automatically fall back to using the English translation. This *should* be bug-free since I did check everything multiple times. But if any issues occur, please report them so that I can fix them.
2013-08-12[Android] Use a HashMap in PrefsFragment.java instead of two CharSequence ↵Lioncash
arrays. This way, we hold the [key|value] pairs together in one object and reduce overall code clutter.
2013-08-12[Android] Seems like InputConfigFragment.java also had explicit list ↵Lioncash
indexing. Removed it from here too.
2013-08-12[Android] Remove unnecessary explicit indexing of entries in a List within ↵Lioncash
AboutFragment.java Indexes are handled internally within a List object.
2013-08-12[Android] Fix OpenGL ES 3 detection on Nexus 10. Nexus 10 defaults to GLES1 ↵Ryan Houdek
context when not specified while Adreno defaults to GLES2. Thanks to Jeremy D Miller for noticing and finding out why this was failing.
2013-07-27[Android] Some minor cleanup.Ryan Houdek
2013-07-26[Android] Another check for OpenGL ES 3.Ryan Houdek
2013-07-25Revert "[Android] Use equals to compare GL version string instead of ↵Ryan Houdek
contains. This should really be some sort of sscanf check so we can check if version > 3.0 but we'll worry about that when OpenGL ES 4.0 is released." This reverts commit bc58e7f42fe0039aff4317bf58a1b62900a16833.
2013-07-25[Android] Use equals to compare GL version string instead of contains. This ↵Ryan Houdek
should really be some sort of sscanf check so we can check if version > 3.0 but we'll worry about that when OpenGL ES 4.0 is released.
2013-07-18[Android] Tiny cleanup regarding method indentation in GameListAdapter.lioncash
getItem() and getView were a little off-kilter with the rest of the class. Keeps things more consistent, etc.
2013-07-16[Android] Folder Browser a fragment as well. Removes the menu item for ↵Ryan Houdek
selected path, because it was just a confusing mechanic anyway. People just tap on the ISO in the browser anyway.
2013-07-16[Android] Change input configuration to a fragment.Ryan Houdek
2013-07-16[Android] In the About pane, show if the phone supports OpenGL ES 3. Makes ↵Ryan Houdek
it less confusing for users.
2013-07-16[Android] Start making it so the side pane is visible on all activities by ↵Ryan Houdek
converting them to fragments. Only Browse Folder and Gamepad Config remain. Fix a issue that Lioncash introduced where no games would show up in the folder browser or the game list.
2013-07-15Add .dff FIFO logs to the list of valid extensions in FolderBrowser.lioncash
2013-07-15Use HashSets in FolderBrowser as well, like the last commit for ↵lioncash
GameListFragment. Should have originally done this with the first refactor. My bad.
2013-07-15[Android] Simplify GameListFragment.Fill a little bit.lioncash
Made the filtering check against a HashSet of specified supported extensions. Not only does this get rid of the multitude of checks for extensions in the if-statement, but it also makes for less typing in the future if new file extensions/formats are used. Simply add the extension to support to the set, and you're done.
2013-07-15[Android] Make FolderBrowser.Fill look slightly nicer. Improve readability a ↵lioncash
bit. - Added a basic function description. - Modified the main parameter to be more informative of what should be passed. Helps people who read the codebase for the first time. - Made a variable for storing the entry name so getName() isn't called a bunch of times. - Added some comments to explain some parts. - Rename the exception catch variable to ignored, since it currently isn't being used.
2013-07-14[Android] Fix a null pointer exception.Ryan Houdek
2013-07-13Patch from Degasus that removes the last of the the GL_TEXTURE_RECTANGLE ↵Ryan Houdek
usages. This is needed to have GLES3 support.
2013-07-11[Android] Show the OpenGL ES 3 backend video option only on devices that ↵Ryan Houdek
support it.
2013-07-11[Android] Show JIT cores based on host arch.Ryan Houdek
2013-07-11[Android] Derp Squad. Show compressed files in the browse folder dialog. ↵Ryan Houdek
Show in red text and if one clicks on it. Say we don't support compressed file formats.
2013-07-05[Android] Copy over DSP roms and font assets on build and first runs.Ryan Houdek
2013-07-05[Android] Instead of wiping shared preferences, set the default values so ↵Ryan Houdek
the settings are actually selected when going in to the settings menu.