mirror of
https://github.com/suloku/gcmm.git
synced 2026-09-07 02:45:30 -05:00
Couldn't backup a raw image if the directory didn't exist, now it will create the directory, just as when backing up savegames
This commit is contained in:
@@ -173,6 +173,10 @@ s8 BackupRawImage(s32 slot, s32 *bytes_writen )
|
||||
s32 writen = 0;
|
||||
char name[64];
|
||||
int filenumber = 1;
|
||||
|
||||
sprintf (filename, "fat:/%s", MCSAVES);
|
||||
mkdir(filename, S_IREAD | S_IWRITE);
|
||||
|
||||
time2name(name);
|
||||
sprintf (filename, "fat:/%s/%04db_%s.raw", MCSAVES, BlockCount-5, name);
|
||||
//not really needed because the filename has seconds in it and the same filename will "never" happen
|
||||
|
||||
Reference in New Issue
Block a user