mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Android: Don't allow INI editing for DOL/ELF files
This commit is contained in:
@ -139,6 +139,12 @@ public final class GameAdapter extends RecyclerView.Adapter<GameViewHolder> impl
|
|||||||
GameViewHolder holder = (GameViewHolder) view.getTag();
|
GameViewHolder holder = (GameViewHolder) view.getTag();
|
||||||
String gameId = holder.gameFile.getGameId();
|
String gameId = holder.gameFile.getGameId();
|
||||||
|
|
||||||
|
if (gameId.isEmpty())
|
||||||
|
{
|
||||||
|
// We can't make a game-specific INI file if there is no game ID
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
FragmentActivity activity = (FragmentActivity) view.getContext();
|
FragmentActivity activity = (FragmentActivity) view.getContext();
|
||||||
|
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
|
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
|
||||||
|
@ -87,6 +87,12 @@ public final class GameRowPresenter extends Presenter
|
|||||||
FragmentActivity activity = (FragmentActivity) view.getContext();
|
FragmentActivity activity = (FragmentActivity) view.getContext();
|
||||||
String gameId = gameFile.getGameId();
|
String gameId = gameFile.getGameId();
|
||||||
|
|
||||||
|
if (gameId.isEmpty())
|
||||||
|
{
|
||||||
|
// We can't make a game-specific INI file if there is no game ID
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
|
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
|
||||||
builder.setTitle("Game Settings")
|
builder.setTitle("Game Settings")
|
||||||
.setItems(R.array.gameSettingsMenus, new DialogInterface.OnClickListener() {
|
.setItems(R.array.gameSettingsMenus, new DialogInterface.OnClickListener() {
|
||||||
|
Reference in New Issue
Block a user