Skip to content

Commit

Permalink
use saves folder by default, fix saving hdf states in romdir on Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
rsn8887 committed Dec 20, 2018
1 parent f611a62 commit 83cb309
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/gp2x/menu/menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ enum { MEMDISK_MENU_CASE_MAIN, MEMDISK_MENU_CASE_MISC };
#define DEFAULT_KICKSTART 1
#define DEFAULT_CPU_MODEL M68000
#define DEFAULT_SPRITECOLLISIONS 0
#define DEFAULT_USESAVESFOLDER 0
#define DEFAULT_USESAVESFOLDER 1

#define MENU_MEMDISK_WINDOW_WIDTH 40

Expand Down
5 changes: 5 additions & 0 deletions src/gp2x/menu/menu_savestates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,12 @@ void make_savestate_filenames(char *save, char *thumb)
int oneColonFound=0;
for (i = strlen(hd_name); i > 0; i--)
if (hd_name[i] == ':' && !oneColonFound)
{
oneColonFound=1;
#ifdef __SWITCH__
break;
#endif
}
else if (hd_name[i] == ':' && oneColonFound)
break;
if (i > 0)
Expand Down

0 comments on commit 83cb309

Please sign in to comment.