Skip to content
Permalink
Browse files
front: create profiles directory if it doesn't exist when saving cheats.
  • Loading branch information
fzurita committed Mar 23, 2016
1 parent dda18a2 commit cb5e0bc
Showing 1 changed file with 3 additions and 0 deletions.
@@ -20,6 +20,7 @@
*/
package paulscode.android.mupen64plusae.cheat;

import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -210,6 +211,8 @@ private void save( String crc )
combinedCheats.addAll(userCheats);
Collections.sort(combinedCheats);

new File( mGlobalPrefs.customCheats_txt ).getParentFile().mkdirs();

CheatFile usrcheat_txt = new CheatFile( mGlobalPrefs.customCheats_txt, true );
CheatFile mupencheat_txt = new CheatFile( mAppData.mupencheat_txt, true );
CheatUtils.save( crc, usrcheat_txt, userCheats, mRomHeaderName, mRomCountryCode, this, false );

0 comments on commit cb5e0bc

Please sign in to comment.