mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 00:55:06 +01:00
-set up the maximum homebrew load filesize from 16mb to 32mb
This commit is contained in:
parent
ea454990dd
commit
6162cc7a3f
Binary file not shown.
@ -10,30 +10,30 @@
|
|||||||
#include "elfloader.h"
|
#include "elfloader.h"
|
||||||
#include "sync.h"
|
#include "sync.h"
|
||||||
|
|
||||||
#define EXECUTABLE_MEM_ADDR 0x92000000
|
#define EXECUTABLE_MEM_ADDR 0x91000000
|
||||||
#define SYSTEM_ARGV ((struct __argv *) 0x93200000)
|
#define SYSTEM_ARGV ((struct __argv *) 0x93200000)
|
||||||
|
|
||||||
void main(void)
|
void main(void)
|
||||||
{
|
{
|
||||||
void *exeBuffer = (void *) EXECUTABLE_MEM_ADDR;
|
void *exeBuffer = (void *)EXECUTABLE_MEM_ADDR;
|
||||||
u32 exeEntryPointAddress = 0;
|
u32 exeEntryPointAddress = 0;
|
||||||
entrypoint exeEntryPoint;
|
entrypoint exeEntryPoint;
|
||||||
|
|
||||||
if (valid_elf_image(exeBuffer) == 1)
|
if(valid_elf_image(exeBuffer) == 1)
|
||||||
exeEntryPointAddress = load_elf_image(exeBuffer);
|
exeEntryPointAddress = load_elf_image(exeBuffer);
|
||||||
else
|
else
|
||||||
exeEntryPointAddress = load_dol_image(exeBuffer);
|
exeEntryPointAddress = load_dol_image(exeBuffer);
|
||||||
|
|
||||||
exeEntryPoint = (entrypoint) exeEntryPointAddress;
|
exeEntryPoint = (entrypoint)exeEntryPointAddress;
|
||||||
if (!exeEntryPoint)
|
if(!exeEntryPoint)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (SYSTEM_ARGV->argvMagic == ARGV_MAGIC)
|
if(SYSTEM_ARGV->argvMagic == ARGV_MAGIC)
|
||||||
{
|
{
|
||||||
void *new_argv = (void *) (exeEntryPointAddress + 8);
|
void *new_argv = (void *) (exeEntryPointAddress + 8);
|
||||||
memcpy(new_argv, SYSTEM_ARGV, sizeof(struct __argv));
|
memcpy(new_argv, SYSTEM_ARGV, sizeof(struct __argv));
|
||||||
sync_before_exec(new_argv, sizeof(struct __argv));
|
sync_before_exec(new_argv, sizeof(struct __argv));
|
||||||
}
|
}
|
||||||
|
|
||||||
exeEntryPoint ();
|
exeEntryPoint();
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
#include "homebrew.h"
|
#include "homebrew.h"
|
||||||
#include "gecko/gecko.hpp"
|
#include "gecko/gecko.hpp"
|
||||||
|
|
||||||
#define EXECUTE_ADDR ((u8 *)0x92000000)
|
#define EXECUTE_ADDR ((u8 *)0x91000000)
|
||||||
#define BOOTER_ADDR ((u8 *)0x93000000)
|
#define BOOTER_ADDR ((u8 *)0x93000000)
|
||||||
#define ARGS_ADDR ((u8 *)0x93200000)
|
#define ARGS_ADDR ((u8 *)0x93200000)
|
||||||
#define BOOTER_ENTRY ((entry)BOOTER_ADDR)
|
#define BOOTER_ENTRY ((entry)BOOTER_ADDR)
|
||||||
|
Loading…
Reference in New Issue
Block a user