mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 13:44:15 +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 align;
|
||||||
u32 correction;
|
u32 correction;
|
||||||
|
u32 toread;
|
||||||
|
|
||||||
FILE *f;
|
FILE *f;
|
||||||
f = fopen(gamepath, "wb");
|
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)
|
while(((wrote+correction) & (align-1)) != 0)
|
||||||
correction++;
|
correction++;
|
||||||
wrote += 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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user