Changed raw backup filename, instead of just "Backup" the blockcount is used as filename.

Ready for 1.2c
This commit is contained in:
sulokutdcmago
2012-09-06 13:55:16 +00:00
parent c544f74fea
commit 114c37df45
3 changed files with 8 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
<app version="1">
<name>GCMM</name>
<coder>Suloku, PabloACZ, Pikachu025, dronesplitter</coder>
<version>1.2b</version>
<version>1.2c</version>
<release_date>20120906000000</release_date>
<short_description>Memory Card Manager</short_description>
<long_description>A memory card manager for Wii/GC.

View File

@@ -30,6 +30,11 @@ I (suloku) have updated the code to newest libraries to port it to the Wii syste
|0O<30><4F>o<EFBFBD> UPDATE HISTORY <20>o<EFBFBD><6F>O0|
`<60><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'
[What's New 1.2c - september 06, 2012 - By suloku]
* Raw backups
* Minor code changes (just for safety)
[What's New 1.2b - september 06, 2012 - By suloku]
* Solved a potential bug, 1.2 and 1.2a seemed unaffected by it.

View File

@@ -174,10 +174,10 @@ s8 BackupRawImage(s32 slot, s32 *bytes_writen )
char name[64];
int filenumber = 1;
time2name(name);
sprintf (filename, "fat:/%s/Backup_%s.raw", MCSAVES, 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
while (file_exists(filename)){
sprintf (filename, "fat:/%s/Backup_%s_%02d.raw", MCSAVES, name, filenumber);
sprintf (filename, "fat:/%s/%04db_%s_%02d.raw", MCSAVES, BlockCount-5, name, filenumber);
filenumber++;
}
dumpFd = fopen(filename,"wb");