diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java index e1804abf96..19d4a8b3aa 100644 --- a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/activities/EmulationActivity.java @@ -1,8 +1,6 @@ package org.dolphinemu.dolphinemu.activities; import android.app.Activity; -import android.app.AlertDialog; -import android.content.DialogInterface; import android.content.Intent; import android.os.Bundle; import android.os.Handler; @@ -167,7 +165,7 @@ public final class EmulationActivity extends Activity switch (item.getItemId()) { // Enable/Disable input overlay. - case R.id.enableInputOverlay: + case R.id.menu_emulation_input_overlay: { EmulationFragment emulationFragment = (EmulationFragment) getFragmentManager() .findFragmentByTag(EmulationFragment.FRAGMENT_TAG); @@ -178,70 +176,61 @@ public final class EmulationActivity extends Activity } // Screenshot capturing - case R.id.takeScreenshot: + case R.id.menu_emulation_screenshot: NativeLibrary.SaveScreenShot(); return true; + // Quicksave / Load + case R.id.menu_quicksave: + NativeLibrary.SaveState(9); + return true; + + case R.id.menu_quickload: + NativeLibrary.LoadState(9); + return true; + // Save state slots - case R.id.saveSlot1: + case R.id.menu_emulation_save_1: NativeLibrary.SaveState(0); return true; - case R.id.saveSlot2: + case R.id.menu_emulation_save_2: NativeLibrary.SaveState(1); return true; - case R.id.saveSlot3: + case R.id.menu_emulation_save_3: NativeLibrary.SaveState(2); return true; - case R.id.saveSlot4: + case R.id.menu_emulation_save_4: NativeLibrary.SaveState(3); return true; - case R.id.saveSlot5: + case R.id.menu_emulation_save_5: NativeLibrary.SaveState(4); return true; // Load state slots - case R.id.loadSlot1: + case R.id.menu_emulation_load_1: NativeLibrary.LoadState(0); return true; - case R.id.loadSlot2: + case R.id.menu_emulation_load_2: NativeLibrary.LoadState(1); return true; - case R.id.loadSlot3: + case R.id.menu_emulation_load_3: NativeLibrary.LoadState(2); return true; - case R.id.loadSlot4: + case R.id.menu_emulation_load_4: NativeLibrary.LoadState(3); return true; - case R.id.loadSlot5: + case R.id.menu_emulation_load_5: NativeLibrary.LoadState(4); return true; - case R.id.exitEmulation: - { - // Create a confirmation method for quitting the current emulation instance. - AlertDialog.Builder builder = new AlertDialog.Builder(this); - builder.setTitle(R.string.overlay_exit_emulation); - builder.setMessage(R.string.overlay_exit_emulation_confirm); - builder.setNegativeButton(R.string.no, null); - builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() - { - public void onClick(DialogInterface dialog, int which) - { - onDestroy(); - } - }); - builder.show(); - return true; - } - default: return super.onOptionsItemSelected(item); } diff --git a/Source/Android/app/src/main/res/drawable-hdpi/ic_quickload.png b/Source/Android/app/src/main/res/drawable-hdpi/ic_quickload.png new file mode 100644 index 0000000000..cd16fdd508 Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-hdpi/ic_quickload.png differ diff --git a/Source/Android/app/src/main/res/drawable-hdpi/ic_quicksave.png b/Source/Android/app/src/main/res/drawable-hdpi/ic_quicksave.png new file mode 100644 index 0000000000..8c9e9cec08 Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-hdpi/ic_quicksave.png differ diff --git a/Source/Android/app/src/main/res/drawable-hdpi/ic_screenshot.png b/Source/Android/app/src/main/res/drawable-hdpi/ic_screenshot.png new file mode 100644 index 0000000000..aa3a3e5717 Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-hdpi/ic_screenshot.png differ diff --git a/Source/Android/app/src/main/res/drawable-mdpi/ic_quickload.png b/Source/Android/app/src/main/res/drawable-mdpi/ic_quickload.png new file mode 100644 index 0000000000..235c84f1e5 Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-mdpi/ic_quickload.png differ diff --git a/Source/Android/app/src/main/res/drawable-mdpi/ic_quicksave.png b/Source/Android/app/src/main/res/drawable-mdpi/ic_quicksave.png new file mode 100644 index 0000000000..bb26bc075d Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-mdpi/ic_quicksave.png differ diff --git a/Source/Android/app/src/main/res/drawable-mdpi/ic_screenshot.png b/Source/Android/app/src/main/res/drawable-mdpi/ic_screenshot.png new file mode 100644 index 0000000000..4dbf6c77bc Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-mdpi/ic_screenshot.png differ diff --git a/Source/Android/app/src/main/res/drawable-xhdpi/ic_quickload.png b/Source/Android/app/src/main/res/drawable-xhdpi/ic_quickload.png new file mode 100644 index 0000000000..5f89fc257b Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-xhdpi/ic_quickload.png differ diff --git a/Source/Android/app/src/main/res/drawable-xhdpi/ic_quicksave.png b/Source/Android/app/src/main/res/drawable-xhdpi/ic_quicksave.png new file mode 100644 index 0000000000..aa0332092a Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-xhdpi/ic_quicksave.png differ diff --git a/Source/Android/app/src/main/res/drawable-xhdpi/ic_screenshot.png b/Source/Android/app/src/main/res/drawable-xhdpi/ic_screenshot.png new file mode 100644 index 0000000000..753805275b Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-xhdpi/ic_screenshot.png differ diff --git a/Source/Android/app/src/main/res/drawable-xxhdpi/ic_quickload.png b/Source/Android/app/src/main/res/drawable-xxhdpi/ic_quickload.png new file mode 100644 index 0000000000..72128fe690 Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-xxhdpi/ic_quickload.png differ diff --git a/Source/Android/app/src/main/res/drawable-xxhdpi/ic_quicksave.png b/Source/Android/app/src/main/res/drawable-xxhdpi/ic_quicksave.png new file mode 100644 index 0000000000..6c87e13588 Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-xxhdpi/ic_quicksave.png differ diff --git a/Source/Android/app/src/main/res/drawable-xxhdpi/ic_screenshot.png b/Source/Android/app/src/main/res/drawable-xxhdpi/ic_screenshot.png new file mode 100644 index 0000000000..c1a3549bfc Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-xxhdpi/ic_screenshot.png differ diff --git a/Source/Android/app/src/main/res/drawable-xxxhdpi/ic_quickload.png b/Source/Android/app/src/main/res/drawable-xxxhdpi/ic_quickload.png new file mode 100644 index 0000000000..d271d8e03f Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-xxxhdpi/ic_quickload.png differ diff --git a/Source/Android/app/src/main/res/drawable-xxxhdpi/ic_quicksave.png b/Source/Android/app/src/main/res/drawable-xxxhdpi/ic_quicksave.png new file mode 100644 index 0000000000..51998492cb Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-xxxhdpi/ic_quicksave.png differ diff --git a/Source/Android/app/src/main/res/drawable-xxxhdpi/ic_screenshot.png b/Source/Android/app/src/main/res/drawable-xxxhdpi/ic_screenshot.png new file mode 100644 index 0000000000..7c5cfc5cfc Binary files /dev/null and b/Source/Android/app/src/main/res/drawable-xxxhdpi/ic_screenshot.png differ diff --git a/Source/Android/app/src/main/res/menu/emuwindow_overlay.xml b/Source/Android/app/src/main/res/menu/emuwindow_overlay.xml deleted file mode 100644 index 7c103d831f..0000000000 --- a/Source/Android/app/src/main/res/menu/emuwindow_overlay.xml +++ /dev/null @@ -1,64 +0,0 @@ -
diff --git a/Source/Android/app/src/main/res/menu/gamelist_menu.xml b/Source/Android/app/src/main/res/menu/gamelist_menu.xml deleted file mode 100644 index dbec1a65f3..0000000000 --- a/Source/Android/app/src/main/res/menu/gamelist_menu.xml +++ /dev/null @@ -1,7 +0,0 @@ - -