mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
Merge pull request #1812 from tustin2121/patch-linker
GF Header and Modern Builds
This commit is contained in:
commit
b1af66ebe5
@ -27,7 +27,7 @@ SECTIONS {
|
||||
*libc.a:locale.o(.data);
|
||||
*libc.a:mallocr.o(.data);
|
||||
. = 0x40000;
|
||||
}
|
||||
}
|
||||
|
||||
. = 0x3000000;
|
||||
|
||||
|
@ -49,8 +49,11 @@ SECTIONS {
|
||||
ALIGN(4)
|
||||
{
|
||||
src/rom_header.o(.text*);
|
||||
src/*.o(.text*);
|
||||
src/rom_header_gf.o(.text.*);
|
||||
src/crt0.o(.text);
|
||||
src/main.o(.text);
|
||||
gflib/*.o(.text*);
|
||||
src/*.o(.text*);
|
||||
asm/*.o(.text*);
|
||||
} =0
|
||||
|
||||
|
@ -6,6 +6,15 @@
|
||||
#include "item.h"
|
||||
#include "pokeball.h"
|
||||
|
||||
// The purpose of this struct is for outside applications to be
|
||||
// able to access parts of the ROM or its save file, like a public API.
|
||||
// In vanilla, it was used by Colosseum and XD to access pokemon graphics.
|
||||
//
|
||||
// If this struct is rearranged in any way, it defeats the purpose of
|
||||
// having it at all. Applications like PKHex or streaming HUDs may find
|
||||
// these values useful, so there's some potential benefit to keeping it.
|
||||
// If there's a compilation problem below, just comment out the assignment
|
||||
// instead of changing this struct.
|
||||
struct GFRomHeader
|
||||
{
|
||||
u32 version;
|
||||
|
Loading…
Reference in New Issue
Block a user