-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:
fix94.1 2012-03-03 21:52:07 +00:00
parent fcf9d344f7
commit 5843737575
6 changed files with 11 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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;
} }
} }