From c6badb92dec5eb4912cdfca7e36306fe1a008240 Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Sun, 14 Jun 2009 12:59:38 +0000 Subject: [PATCH] *Fixed Ocarina giving blackscreen *Changed some stuff to the Apploader --- source/fatmounter.c | 4 ++-- source/patches/fst.c | 5 +---- source/usbloader/disc.c | 11 +++++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/source/fatmounter.c b/source/fatmounter.c index 59b79952..c434c63e 100644 --- a/source/fatmounter.c +++ b/source/fatmounter.c @@ -11,8 +11,8 @@ #include "usbloader/usbstorage.h" //these are the only stable and speed is good -#define CACHE 32 -#define SECTORS 128 +#define CACHE 8 +#define SECTORS 64 enum BPB { BPB_jmpBoot = 0x00, diff --git a/source/patches/fst.c b/source/patches/fst.c index fbac17e0..4fd76839 100644 --- a/source/patches/fst.c +++ b/source/patches/fst.c @@ -27,9 +27,9 @@ #include #include #include +#include #include "settings/cfg.h" -#include "ogc/ipc.h" #include "fst.h" #include "dvd_broadway.h" #include "wpad.h" @@ -45,8 +45,6 @@ u32 do_sd_code(char *filename) u32 ret; char filepath[150]; - fflush(stdout); - SDCard_Init(); USBDevice_Init(); @@ -57,7 +55,6 @@ u32 do_sd_code(char *filename) filepath[strlen(Settings.Cheatcodespath)+9] = 0x74; filepath[strlen(Settings.Cheatcodespath)+10] = 0; - fp = fopen(filepath, "rb"); if (!fp) { USBDevice_deInit(); diff --git a/source/usbloader/disc.c b/source/usbloader/disc.c index 415e2e6b..4eb9f153 100644 --- a/source/usbloader/disc.c +++ b/source/usbloader/disc.c @@ -23,8 +23,8 @@ static char gameid[8]; void __Disc_SetLowMem(void) { - //*(vu32 *)0x80000020 = 0x0D15EA5E; // System Magic - //*(vu32 *)0x80000024 = 0x00000001; // Version + *(vu32 *)0x80000020 = 0x0D15EA5E; // Standard Boot Code + *(vu32 *)0x80000024 = 0x00000001; // Version *(vu32 *)0x80000030 = 0x00000000; // Arena Low *(vu32 *)0x800000F4 = 0x817E5480; // BI2 @@ -34,10 +34,13 @@ void __Disc_SetLowMem(void) /* Setup low memory */ *(vu32 *)0x80000060 = 0x38A00040; *(vu32 *)0x800000E4 = 0x80431A80; - *(vu32 *)0x800000EC = 0x81800000; + *(vu32 *)0x800000EC = 0x81800000; // Dev Debugger Monitor Address + *(vu32 *)0x800000F0 = 0x01800000; // Simulated Memory Size + + *(vu32*)0x80003184 = 0x80000000; // Game ID Address /* Copy disc ID */ - memcpy((void *)0x80003180, (void *)0x80000000, 4); + memcpy((void *)0x80003180, (void *)0x80000000, 4); /* Flush cache */ DCFlushRange((void *)0x80000000, 0x3F00);