mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-23 19:59:16 +01:00
-recompiled a few libs with devkitppc r25
-fixed dumping gamecube games to ntfs, general dumping progress is maybe a bit slower now on all partition types (using fwrite instead of fseek now, seems like libntfs dont like fseek)
This commit is contained in:
parent
fcf9d344f7
commit
5843737575
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -253,6 +253,7 @@ s32 GCDump::DumpGame(progress_callback_t spinner, message_callback_t message, vo
|
||||
{
|
||||
u32 align;
|
||||
u32 correction;
|
||||
u32 toread;
|
||||
|
||||
FILE *f;
|
||||
f = fopen(gamepath, "wb");
|
||||
@ -278,7 +279,14 @@ s32 GCDump::DumpGame(progress_callback_t spinner, message_callback_t message, vo
|
||||
while(((wrote+correction) & (align-1)) != 0)
|
||||
correction++;
|
||||
wrote += correction;
|
||||
fseek(f,correction,SEEK_END);
|
||||
//fseek(f,correction,SEEK_END);
|
||||
while(correction)
|
||||
{
|
||||
toread=min(correction,gc_readsize);
|
||||
memset(ReadBuffer,0,toread);
|
||||
fwrite(ReadBuffer,1,toread,f);
|
||||
correction -= toread;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user