mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
*bugfix on variable update when installing wad (small cleanup right before commit without test :\)
This commit is contained in:
parent
0a703894e7
commit
f33d8c6b37
@ -2,8 +2,8 @@
|
|||||||
<app version="1">
|
<app version="1">
|
||||||
<name> USB Loader GX</name>
|
<name> USB Loader GX</name>
|
||||||
<coder>USB Loader GX Team</coder>
|
<coder>USB Loader GX Team</coder>
|
||||||
<version>2.3 r1143</version>
|
<version>2.3 r1144</version>
|
||||||
<release_date>201201011709</release_date>
|
<release_date>201201012108</release_date>
|
||||||
<!-- // remove this line to enable arguments
|
<!-- // remove this line to enable arguments
|
||||||
<arguments>
|
<arguments>
|
||||||
<arg>--ios=250</arg>
|
<arg>--ios=250</arg>
|
||||||
|
@ -288,7 +288,7 @@ bool Wad::InstallContents(const char *installpath)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
if(cnt > 0)
|
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;
|
u32 done = 0, len;
|
||||||
tmd_content *content = &tmd_data->contents[cnt];
|
tmd_content *content = &tmd_data->contents[cnt];
|
||||||
@ -380,7 +380,7 @@ bool Wad::InstallContents(const char *installpath)
|
|||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
||||||
// update progress variable
|
// update progress variable
|
||||||
totalDone = len;
|
totalDone += len;
|
||||||
|
|
||||||
// Check if the read/write process stopped before finishing
|
// Check if the read/write process stopped before finishing
|
||||||
if(done < len)
|
if(done < len)
|
||||||
|
Loading…
Reference in New Issue
Block a user