mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-04 18:45:05 +01:00
*Fixed Ocarina giving blackscreen
*Changed some stuff to the Apploader
This commit is contained in:
parent
51afe469cc
commit
c6badb92de
@ -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,
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user