diff --git a/Source/Android/app/src/main/AndroidManifest.xml b/Source/Android/app/src/main/AndroidManifest.xml index 6c49619945..9074dfb3da 100644 --- a/Source/Android/app/src/main/AndroidManifest.xml +++ b/Source/Android/app/src/main/AndroidManifest.xml @@ -76,6 +76,12 @@ android:theme="@style/DolphinSettingsBase" android:label="@string/settings"/> + + SettingsActivity.launch(getContext(), MenuTag.SETTINGS, gameId, revision, isWii)); + itemsBuilder.add(R.string.properties_edit_cheats, (dialog, i) -> + CheatsActivity.launch(getContext(), gameId, revision)); + itemsBuilder.add(R.string.properties_clear_game_settings, (dialog, i) -> clearGameSettings(gameId)); diff --git a/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/cheats/ui/CheatsActivity.java b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/cheats/ui/CheatsActivity.java new file mode 100644 index 0000000000..4090507408 --- /dev/null +++ b/Source/Android/app/src/main/java/org/dolphinemu/dolphinemu/features/cheats/ui/CheatsActivity.java @@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +package org.dolphinemu.dolphinemu.features.cheats.ui; + +import android.content.Context; +import android.content.Intent; + +import androidx.appcompat.app.AppCompatActivity; + +public class CheatsActivity extends AppCompatActivity +{ + private static final String ARG_GAME_ID = "game_id"; + private static final String ARG_REVISION = "revision"; + + public static void launch(Context context, String gameId, int revision) + { + Intent intent = new Intent(context, CheatsActivity.class); + intent.putExtra(ARG_GAME_ID, gameId); + intent.putExtra(ARG_REVISION, revision); + context.startActivity(intent); + } +} diff --git a/Source/Android/app/src/main/res/values/strings.xml b/Source/Android/app/src/main/res/values/strings.xml index e21e942e64..99abca7e6c 100644 --- a/Source/Android/app/src/main/res/values/strings.xml +++ b/Source/Android/app/src/main/res/values/strings.xml @@ -361,7 +361,8 @@ Convert File Set as Default ISO Edit Game Settings - Clear Game Settings + Edit Cheats + Clear Game Settings and Cheats Cleared settings for %1$s Unable to clear settings for %1$s No game settings to delete @@ -371,6 +372,8 @@ Extension Bindings Junk Data Found The settings file for this game contains extraneous data added by an old version of Dolphin. This will likely prevent global settings from working as intended.\n\nWould you like to fix this by deleting the settings file for this game? All game-specific settings and cheats that you have added will be removed. This cannot be undone. + + Country Company Game ID @@ -382,6 +385,10 @@ No Compression %1$s (%2$s) + + Cheats + Cheats: %1$s + Format Block Size