-set up the maximum homebrew load filesize from 16mb to 32mb

This commit is contained in:
fix94.1 2012-12-30 14:11:16 +00:00
parent ea454990dd
commit 6162cc7a3f
3 changed files with 8 additions and 8 deletions

Binary file not shown.

View File

@ -10,30 +10,30 @@
#include "elfloader.h"
#include "sync.h"
#define EXECUTABLE_MEM_ADDR 0x92000000
#define EXECUTABLE_MEM_ADDR 0x91000000
#define SYSTEM_ARGV ((struct __argv *) 0x93200000)
void main(void)
{
void *exeBuffer = (void *) EXECUTABLE_MEM_ADDR;
void *exeBuffer = (void *)EXECUTABLE_MEM_ADDR;
u32 exeEntryPointAddress = 0;
entrypoint exeEntryPoint;
if (valid_elf_image(exeBuffer) == 1)
if(valid_elf_image(exeBuffer) == 1)
exeEntryPointAddress = load_elf_image(exeBuffer);
else
exeEntryPointAddress = load_dol_image(exeBuffer);
exeEntryPoint = (entrypoint) exeEntryPointAddress;
if (!exeEntryPoint)
exeEntryPoint = (entrypoint)exeEntryPointAddress;
if(!exeEntryPoint)
return;
if (SYSTEM_ARGV->argvMagic == ARGV_MAGIC)
if(SYSTEM_ARGV->argvMagic == ARGV_MAGIC)
{
void *new_argv = (void *) (exeEntryPointAddress + 8);
memcpy(new_argv, SYSTEM_ARGV, sizeof(struct __argv));
sync_before_exec(new_argv, sizeof(struct __argv));
}
exeEntryPoint ();
exeEntryPoint();
}

View File

@ -9,7 +9,7 @@
#include "homebrew.h"
#include "gecko/gecko.hpp"
#define EXECUTE_ADDR ((u8 *)0x92000000)
#define EXECUTE_ADDR ((u8 *)0x91000000)
#define BOOTER_ADDR ((u8 *)0x93000000)
#define ARGS_ADDR ((u8 *)0x93200000)
#define BOOTER_ENTRY ((entry)BOOTER_ADDR)