mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-24 02:41:55 +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");
|
||||
@ -267,8 +268,8 @@ s32 GCDump::DumpGame(progress_callback_t spinner, message_callback_t message, vo
|
||||
if( fst[i].Type )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
else
|
||||
}
|
||||
else
|
||||
{
|
||||
for(align = 0x8000; align > 2; align/=2)
|
||||
{
|
||||
@ -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