*bugfix on variable update when installing wad (small cleanup right before commit without test :\)

This commit is contained in:
strtoul 2012-01-01 21:11:17 +00:00
parent 0a703894e7
commit f33d8c6b37
2 changed files with 4 additions and 4 deletions

View File

@ -2,8 +2,8 @@
<app version="1">
<name> USB Loader GX</name>
<coder>USB Loader GX Team</coder>
<version>2.3 r1143</version>
<release_date>201201011709</release_date>
<version>2.3 r1144</version>
<release_date>201201012108</release_date>
<!-- // remove this line to enable arguments
<arguments>
<arg>--ios=250</arg>

View File

@ -288,7 +288,7 @@ bool Wad::InstallContents(const char *installpath)
break;
if(cnt > 0)
offset = round_up( tmd_data->contents[cnt-1].size, 64);
offset += round_up( tmd_data->contents[cnt-1].size, 64);
u32 done = 0, len;
tmd_content *content = &tmd_data->contents[cnt];
@ -380,7 +380,7 @@ bool Wad::InstallContents(const char *installpath)
fclose(fp);
// update progress variable
totalDone = len;
totalDone += len;
// Check if the read/write process stopped before finishing
if(done < len)