Permalink
Browse files

Android: Don't allow INI editing for DOL/ELF files

  • Loading branch information...
JosJuice committed Jun 5, 2018
1 parent 1c027bc commit f0f8ca21723470c859b58291144b7913dfae3906
@@ -139,6 +139,12 @@ public boolean onLongClick(View view)
GameViewHolder holder = (GameViewHolder) view.getTag();
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();
AlertDialog.Builder builder = new AlertDialog.Builder(activity);
@@ -87,6 +87,12 @@ public boolean onLongClick(View view)
FragmentActivity activity = (FragmentActivity) view.getContext();
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);
builder.setTitle("Game Settings")
.setItems(R.array.gameSettingsMenus, new DialogInterface.OnClickListener() {

0 comments on commit f0f8ca2

Please sign in to comment.