-fixed herpderp error

This commit is contained in:
fix94.1 2012-01-23 22:01:23 +00:00
parent f7bfba3398
commit 063fab9774

View File

@ -144,7 +144,8 @@ u32 LoadChannel(u8 *buffer)
DCFlushRange((void *)dolfile->bss_start, dolfile->bss_size);
}
for(int i = 0; i < 18; i++)
int i;
for(i = 0; i < 18; i++)
{
if (!dolfile->section_size[i]) continue;
if (dolfile->section_pos[i] < sizeof(dolheader)) continue;
@ -168,7 +169,8 @@ void PatchChannel(u8 vidMode, GXRModeObj *vmode, bool vipatch, bool countryStrin
{
bool hookpatched = false;
for (int i=0;i < dolchunkcount;i++)
int i;
for (i=0;i < dolchunkcount;i++)
{
patchVideoModes(dolchunkoffset[i], dolchunksize[i], vidMode, vmode, patchVidModes);
if (vipatch) vidolpatcher(dolchunkoffset[i], dolchunksize[i]);