Skip to content

Commit

Permalink
add two splits to dtk
Browse files Browse the repository at this point in the history
  • Loading branch information
BR- committed Jan 17, 2024
1 parent dcf00b3 commit 9074945
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 10 deletions.
14 changes: 14 additions & 0 deletions config/GALE01/splits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,17 @@ Sections:
.sdata type:data align:8
.sbss type:bss align:8
.sdata2 type:rodata align:8

melee/cm/cmsnap.c:
.text start:0x800315C8 end:0x80031724
.data start:0x803BCD90 end:0x803BCDC0
.bss start:0x80453060 end:0x80453080

melee/db/db_2253.c:
.text start:0x80225374 end:0x802295AC
.rodata start:0x803B84D8 end:0x803B84E8
.data start:0x803EA6C8 end:0x803EAE68
.bss start:0x8049FA00 end:0x804A04F0
.sdata start:0x804D4A08 end:0x804D4B30
.sbss start:0x804D6B20 end:0x804D6BA8
.sdata2 start:0x804DBCF0 end:0x804DBD88
18 changes: 9 additions & 9 deletions config/GALE01/symbols.txt
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ fn_80011B74 = .text:0x80011B74; // type:function size:0xA4
fn_80011C18 = .text:0x80011C18; // type:function size:0x20C
fn_80011E24 = .text:0x80011E24; // type:function size:0x228
fn_8001204C = .text:0x8001204C; // type:function size:0x1B0
fn_800121FC = .text:0x800121FC; // type:function size:0xCC
fn_800122C8 = .text:0x800122C8; // type:function size:0x28
lb_800121FC = .text:0x800121FC; // type:function size:0xCC
lb_800122C8 = .text:0x800122C8; // type:function size:0x28
fn_800122F0 = .text:0x800122F0; // type:function size:0x42C
fn_8001271C = .text:0x8001271C; // type:function size:0x140
fn_8001285C = .text:0x8001285C; // type:function size:0x138
Expand Down Expand Up @@ -775,10 +775,10 @@ fn_800311DC = .text:0x800311DC; // type:function size:0x10
fn_800311EC = .text:0x800311EC; // type:function size:0x13C
fn_80031328 = .text:0x80031328; // type:function size:0xB8
fn_800313E0 = .text:0x800313E0; // type:function size:0x1E8
fn_800315C8 = .text:0x800315C8; // type:function size:0x50
fn_80031618 = .text:0x80031618; // type:function size:0x28
fn_80031640 = .text:0x80031640; // type:function size:0x74
fn_800316B4 = .text:0x800316B4; // type:function size:0x70
cmSnap_800315C8 = .text:0x800315C8; // type:function size:0x50
cmSnap_80031618 = .text:0x80031618; // type:function size:0x28
cmSnap_80031640 = .text:0x80031640; // type:function size:0x74
cmSnap_800316B4 = .text:0x800316B4; // type:function size:0x70
fn_80031724 = .text:0x80031724; // type:function size:0x6C
fn_80031790 = .text:0x80031790; // type:function size:0xB8
fn_80031848 = .text:0x80031848; // type:function size:0xB8
Expand Down Expand Up @@ -19549,7 +19549,7 @@ fn_80387BA4 = .text:0x80387BA4; // type:function size:0x254
fn_80387DF8 = .text:0x80387DF8; // type:function size:0x364
fn_8038815C = .text:0x8038815C; // type:function size:0x88
fn_803881E4 = .text:0x803881E4; // type:function size:0x3C
fn_80388220 = .text:0x80388220; // type:function size:0x58
__assert = .text:0x80388220; // type:function size:0x58
fn_80388278 = .text:0x80388278; // type:function size:0xA8
fn_80388320 = .text:0x80388320; // type:function size:0x8
fn_80388328 = .text:0x80388328; // type:function size:0x8
Expand Down Expand Up @@ -19662,12 +19662,12 @@ fn_8038FE24 = .text:0x8038FE24; // type:function size:0xB0
fn_8038FED4 = .text:0x8038FED4; // type:function size:0x88
fn_8038FF5C = .text:0x8038FF5C; // type:function size:0x5C
fn_8038FFB8 = .text:0x8038FFB8; // type:function size:0x238
fn_803901F0 = .text:0x803901F0; // type:function size:0x38
GObj_Create = .text:0x803901F0; // type:function size:0x38
fn_80390228 = .text:0x80390228; // type:function size:0x104
fn_8039032C = .text:0x8039032C; // type:function size:0x310
fn_8039063C = .text:0x8039063C; // type:function size:0x60
fn_8039069C = .text:0x8039069C; // type:function size:0xC0
fn_8039075C = .text:0x8039075C; // type:function size:0x6C
GObj_SetupGXLinkMax = .text:0x8039075C; // type:function size:0x6C
fn_803907C8 = .text:0x803907C8; // type:function size:0x84
fn_8039084C = .text:0x8039084C; // type:function size:0xBC
fn_80390908 = .text:0x80390908; // type:function size:0xD0
Expand Down
40 changes: 39 additions & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,51 @@ def Rel(lib_name, objects):
"objects": objects,
}

def Melee(lib_name, objects):
return {
"lib": lib_name,
"mw_version": "GC/1.2.5n",
"cflags": [
"-msgstyle gcc",
"-nowraplines",
"-cwd source",
"-Cpp_exceptions off",
"-proc gekko",
"-fp hard",
"-fp_contract on",
"-O4,p",
"-enum int",
"-nodefaults",
"-inline auto",
"-i src/melee",
"-i src/melee/ft/chara",
"-I-",
"-i src",
"-i src/MSL",
"-i src/Runtime",
"-i src/sysdolphin",
"-maxerrors 1",
"-DMUST_MATCH",
"-requireprotos",
],
"host": False,
"objects": objects,
}

Matching = True
NonMatching = False

config.warn_missing_config = True
config.warn_missing_source = True
config.libs = []
config.libs = [
Melee(
"Melee",
[
Object(Matching, "melee/cm/cmsnap.c"),
Object(NonMatching, "melee/db/db_2253.c"),
],
),
]

if args.mode == "configure":
# Write build.ninja and objdiff.json
Expand Down

0 comments on commit 9074945

Please sign in to comment.