forked from Mirror/GodMode9
Use a bigger SELF_MAX_SIZE for payload size
This commit is contained in:
parent
aa8ede3543
commit
35c87abf10
@ -50,6 +50,9 @@
|
||||
// GodMode9 version
|
||||
#define VERSION "1.0.2"
|
||||
|
||||
// Maximum payload size (arbitrary value!)
|
||||
#define SELF_MAX_SIZE (320 * 1024) // 320kB
|
||||
|
||||
// input / output paths
|
||||
#define INPUT_PATHS "0:", "0:/files9", "1:/rw/files9"
|
||||
#define OUTPUT_PATH "0:/gm9out"
|
||||
|
@ -237,7 +237,7 @@ u32 SdFormatMenu(void) {
|
||||
|
||||
if (IS_A9LH) {
|
||||
InitSDCardFS(); // on A9LH: copy the payload from mem to SD root
|
||||
FileSetData("0:/arm9loaderhax_si.bin", (u8*) 0x23F00000, 0x40000, 0, true);
|
||||
FileSetData("0:/arm9loaderhax_si.bin", (u8*) 0x23F00000, SELF_MAX_SIZE, 0, true);
|
||||
DeinitSDCardFS();
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ static const VirtualFile vMemFileTemplates[] = {
|
||||
// { "otp.mem" , 0x10012000, 0x00000108, 0xFF, 0 },
|
||||
{ "bootrom.mem" , 0xFFFF0000, 0x00010000, 0xFF, 0 },
|
||||
{ "bootrom_unp.mem" , 0xFFFF0000, 0x00008000, 0xFF, 0 },
|
||||
{ "godmode9.bin" , 0x23F00000, 0x00040000, 0xFF, 0 } // arbitrary size
|
||||
{ "godmode9.bin" , 0x23F00000, SELF_MAX_SIZE, 0xFF, 0 }
|
||||
};
|
||||
|
||||
bool ReadVMemDir(VirtualFile* vfile, VirtualDir* vdir) { // uses a generic vdir object generated in virtual.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user