*Fixed Ocarina giving blackscreen

*Changed some stuff to the Apploader
This commit is contained in:
dimok321 2009-06-14 12:59:38 +00:00
parent 51afe469cc
commit c6badb92de
3 changed files with 10 additions and 10 deletions

View File

@ -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,

View File

@ -27,9 +27,9 @@
#include <malloc.h>
#include <sys/unistd.h>
#include <sdcard/wiisd_io.h>
#include <ogc/ipc.h>
#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();

View File

@ -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,7 +34,10 @@ 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);