Skip to content

Commit

Permalink
Merge pull request #496 from fzurita/cheat_title_not_refreshing
Browse files Browse the repository at this point in the history
Now refreshing cheats correctly.
  • Loading branch information
xperia64 committed Oct 26, 2015
2 parents 256bd33 + 01a1771 commit 8e9f289
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -28,7 +28,6 @@
import org.mupen64plusae.v3.alpha.R; import org.mupen64plusae.v3.alpha.R;


import paulscode.android.mupen64plusae.ActivityHelper; import paulscode.android.mupen64plusae.ActivityHelper;
import paulscode.android.mupen64plusae.ScanRomsActivity;
import paulscode.android.mupen64plusae.cheat.CheatUtils.Cheat; import paulscode.android.mupen64plusae.cheat.CheatUtils.Cheat;
import paulscode.android.mupen64plusae.compat.AppCompatListActivity; import paulscode.android.mupen64plusae.compat.AppCompatListActivity;
import paulscode.android.mupen64plusae.dialog.Prompt; import paulscode.android.mupen64plusae.dialog.Prompt;
Expand Down Expand Up @@ -172,6 +171,8 @@ private void save( String crc )
CheatFile mupencheat_txt = new CheatFile( mAppData.mupencheat_txt, true ); CheatFile mupencheat_txt = new CheatFile( mAppData.mupencheat_txt, true );
CheatUtils.save( crc, usrcheat_txt, userCheats, mRomHeaderName, mRomCountryCode, this, false ); CheatUtils.save( crc, usrcheat_txt, userCheats, mRomHeaderName, mRomCountryCode, this, false );
CheatUtils.save( crc, mupencheat_txt, combinedCheats, mRomHeaderName, mRomCountryCode, this, true ); CheatUtils.save( crc, mupencheat_txt, combinedCheats, mRomHeaderName, mRomCountryCode, this, true );

setResult(RESULT_OK, null);
} }


private boolean isHexNumber( String num ) private boolean isHexNumber( String num )
Expand Down Expand Up @@ -239,8 +240,6 @@ public void onClick( View v )


case R.id.imgBtnChtSave: case R.id.imgBtnChtSave:
save( mRomCrc ); save( mRomCrc );

setResult(RESULT_OK, null);
CheatEditorActivity.this.finish(); CheatEditorActivity.this.finish();
break; break;


Expand Down

0 comments on commit 8e9f289

Please sign in to comment.