Skip to content

Commit d1f71ee

Browse files
committed
Merge branch 'd_a_npc_kn' of github.com:pheenoh/tp into d_a_npc_kn
2 parents 0352466 + 4573e8f commit d1f71ee

File tree

6,376 files changed

+626084
-293344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,376 files changed

+626084
-293344
lines changed

.clangd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
CompileFlags:
2-
Add: [-Wno-c++11-compat-deprecated-writable-strings, -Wno-extern-initializer, -Wno-multichar]
2+
Add: [-Wno-c++11-compat-deprecated-writable-strings, -Wno-extern-initializer, -Wno-multichar, "-fdeclspec"]
3+
Diagnostics:
4+
Suppress:
5+
- "warn_char_constant_too_large"
6+
- "illegal_union_or_anon_struct_member"
37
---
48
If:
59
PathMatch: .*/*.inc

.github/workflows/build.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,7 @@ jobs:
3232
run: |
3333
python configure.py --map --version ${{ matrix.version }} \
3434
--binutils /binutils --compilers /compilers
35-
ninja all_source build/${{ matrix.version }}/progress.json \
36-
build/${{ matrix.version }}/report.json
37-
38-
# Upload progress if we're on the main branch
39-
- name: Upload progress
40-
if: github.ref == 'refs/heads/main'
41-
continue-on-error: true
42-
env:
43-
PROGRESS_SLUG: twilightprincess
44-
PROGRESS_API_KEY: ${{ secrets.PROGRESS_API_KEY }}
45-
run: |
46-
python tools/upload_progress.py -b https://progress.decomp.club/ \
47-
-p $PROGRESS_SLUG -v ${{ matrix.version }} \
48-
build/${{ matrix.version }}/progress.json
35+
ninja all_source progress build/${{ matrix.version }}/report.json
4936
5037
# Upload map files
5138
- name: Upload map

.vscode/tasks.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22
// Use Ctrl+Shift+B to run build tasks.
33
// Or "Run Build Task" in the Command Palette.
44
"version": "2.0.0",
5+
"inputs": [
6+
{
7+
"id": "gameVersion",
8+
"type": "pickString",
9+
"options": [
10+
"GZ2E01",
11+
"GZ2P01",
12+
"GZ2J01",
13+
"ShieldD",
14+
],
15+
"default": "GZ2E01",
16+
"description": "Game version to build."
17+
},
18+
],
519
"tasks": [
620
{
721
"label": "ninja",
@@ -12,5 +26,11 @@
1226
"isDefault": true
1327
}
1428
},
29+
{
30+
"label": "configure",
31+
"type": "shell",
32+
"command": "${command:python.interpreterPath} configure.py --version ${input:gameVersion}",
33+
"problemMatcher": [],
34+
},
1535
]
1636
}

config/GZ2E01/config.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ splits: config/GZ2E01/splits.txt
66
symbols: config/GZ2E01/symbols.txt
77
mw_comment_version: 11 # GC Linker 2.7
88
quick_analysis: true # Initial analysis completed
9+
force_active: [
10+
_MetroTRK_Has_Framing,
11+
]
12+
13+
block_relocations:
14+
- source: .sdata:0x804505ac
15+
add_relocations:
16+
- source: .sdata:0x804505ac
17+
type: abs
18+
target: buffer__14mDoMtx_stack_c
19+
addend: 0x300
20+
921
modules:
1022
- object: files/RELS.arc:rels/mmem/f_pc_profile_lst.rel
1123
hash: 183231361986731ad6bd26624a03a44dceda905b
@@ -340,8 +352,8 @@ modules:
340352
binary: assets/l_J_hana00_cDL.bin
341353
header: assets/l_J_hana00_cDL.h
342354
- symbol: l_matDL
343-
binary: assets/l_matDL.bin
344-
header: assets/l_matDL.h
355+
binary: assets/l_matDL__d_a_grass.bin
356+
header: assets/l_matDL__d_a_grass.h
345357
header_type: none
346358
custom_type: matDL
347359
- symbol: l_matLight4DL
@@ -362,8 +374,8 @@ modules:
362374
binary: assets/l_J_hana01_c_01DL.bin
363375
header: assets/l_J_hana01_c_01DL.h
364376
- symbol: l_mat2DL
365-
binary: assets/l_mat2DL.bin
366-
header: assets/l_mat2DL.h
377+
binary: assets/l_mat2DL__d_a_grass.bin
378+
header: assets/l_mat2DL__d_a_grass.h
367379
header_type: none
368380
custom_type: matDL
369381
- symbol: l_mat2Light4DL

config/GZ2E01/rels/d_a_L7demo_dr/symbols.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ _dtors = .dtors:0x00000000; // type:label scope:global
3232
@3948 = .rodata:0x00000014; // type:object size:0x4 scope:local
3333
@3949 = .rodata:0x00000018; // type:object size:0x4 scope:local
3434
@3950 = .rodata:0x0000001C; // type:object size:0x4 scope:local
35-
@3951 = .rodata:0x00000020; // type:object size:0x4 scope:local data:float
35+
@3951 = .rodata:0x00000020; // type:object size:0x4 scope:local align:4 data:float
3636
@3952 = .rodata:0x00000024; // type:object size:0x4 scope:local
3737
@4123 = .rodata:0x00000028; // type:object size:0x4 scope:local
3838
@4124 = .rodata:0x0000002C; // type:object size:0x4 scope:local
@@ -44,8 +44,8 @@ _dtors = .dtors:0x00000000; // type:label scope:global
4444
@4184 = .rodata:0x00000044; // type:object size:0x4 scope:local
4545
@4185 = .rodata:0x00000048; // type:object size:0x4 scope:local
4646
@4186 = .rodata:0x0000004C; // type:object size:0x4 scope:local
47-
@4217 = .rodata:0x00000050; // type:object size:0x4 scope:local data:float
48-
@4218 = .rodata:0x00000054; // type:object size:0x4 scope:local data:float
47+
@4217 = .rodata:0x00000050; // type:object size:0x4 scope:local align:4 data:float
48+
@4218 = .rodata:0x00000054; // type:object size:0x4 scope:local align:4 data:float
4949
@4290 = .rodata:0x00000058; // type:object size:0x4 scope:local
5050
@4291 = .rodata:0x0000005C; // type:object size:0x4 scope:local
5151
@4292 = .rodata:0x00000060; // type:object size:0x4 scope:local

config/GZ2E01/rels/d_a_L7low_dr/symbols.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _dtors = .dtors:0x00000000; // type:label scope:global
2323
@3770 = .rodata:0x00000004; // type:object size:0x4 scope:local
2424
@3771 = .rodata:0x00000008; // type:object size:0x4 scope:local
2525
@3772 = .rodata:0x0000000C; // type:object size:0x4 scope:local
26-
@3773 = .rodata:0x00000010; // type:object size:0x4 scope:local data:float
26+
@3773 = .rodata:0x00000010; // type:object size:0x4 scope:local align:4 data:float
2727
@3774 = .rodata:0x00000014; // type:object size:0x4 scope:local
2828
@3775 = .rodata:0x00000018; // type:object size:0x4 scope:local
2929
@3776 = .rodata:0x0000001C; // type:object size:0x4 scope:local

config/GZ2E01/rels/d_a_L7op_demo_dr/symbols.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ _dtors = .dtors:0x00000000; // type:label scope:global
3838
...rodata.0 = .rodata:0x00000000; // type:label scope:local
3939
@3850 = .rodata:0x00000000; // type:object size:0x4 scope:local
4040
@3851 = .rodata:0x00000004; // type:object size:0x4 scope:local
41-
@3852 = .rodata:0x00000008; // type:object size:0x4 scope:local data:float
42-
@3853 = .rodata:0x0000000C; // type:object size:0x4 scope:local data:float
41+
@3852 = .rodata:0x00000008; // type:object size:0x4 scope:local align:4 data:float
42+
@3853 = .rodata:0x0000000C; // type:object size:0x4 scope:local align:4 data:float
4343
@4115 = .rodata:0x00000010; // type:object size:0x4 scope:local
4444
@4116 = .rodata:0x00000014; // type:object size:0x4 scope:local data:string
4545
@4117 = .rodata:0x00000018; // type:object size:0x4 scope:local

config/GZ2E01/rels/d_a_andsw/symbols.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Create__9daAndsw_cFv = .text:0x00000078; // type:function size:0x40 scope:global
55
create__9daAndsw_cFv = .text:0x000000B8; // type:function size:0x68 scope:global
66
execute__9daAndsw_cFv = .text:0x00000120; // type:function size:0x9C scope:global
77
_delete__9daAndsw_cFv = .text:0x000001BC; // type:function size:0x8 scope:global
8-
daAndsw_Execute__FP9daAndsw_c = .text:0x000001C4; // type:function size:0x20 scope:global
9-
daAndsw_Delete__FP9daAndsw_c = .text:0x000001E4; // type:function size:0x20 scope:global
10-
daAndsw_Create__FP10fopAc_ac_c = .text:0x00000204; // type:function size:0x20 scope:global
8+
daAndsw_Execute__FP9daAndsw_c = .text:0x000001C4; // type:function size:0x20 scope:local
9+
daAndsw_Delete__FP9daAndsw_c = .text:0x000001E4; // type:function size:0x20 scope:local
10+
daAndsw_Create__FP10fopAc_ac_c = .text:0x00000204; // type:function size:0x20 scope:local
1111
_ctors = .ctors:0x00000000; // type:label scope:global
1212
_dtors = .dtors:0x00000000; // type:label scope:global
13-
l_daAndsw_Method = .data:0x00000000; // type:object size:0x20 scope:global
13+
l_daAndsw_Method = .data:0x00000000; // type:object size:0x20 scope:local
1414
g_profile_ANDSW = .data:0x00000020; // type:object size:0x30 scope:global

config/GZ2E01/rels/d_a_arrow/symbols.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ _dtors = .dtors:0x00000000; // type:label scope:global
6262
@3768 = .rodata:0x00000000; // type:object size:0xC scope:local
6363
l_atCpsSrc = .rodata:0x0000000C; // type:object size:0x4C scope:global
6464
l_coSphSrc = .rodata:0x00000058; // type:object size:0x40 scope:global
65-
@4130 = .rodata:0x00000098; // type:object size:0x4 scope:local data:float
65+
@4130 = .rodata:0x00000098; // type:object size:0x4 scope:local align:4 data:float
6666
@4131 = .rodata:0x000000A0; // type:object size:0x8 scope:local
6767
@4132 = .rodata:0x000000A8; // type:object size:0x8 scope:local
6868
@4133 = .rodata:0x000000B0; // type:object size:0x8 scope:local
69-
@4187 = .rodata:0x000000B8; // type:object size:0x4 scope:local data:float
69+
@4187 = .rodata:0x000000B8; // type:object size:0x4 scope:local align:4 data:float
7070
effName$4192 = .rodata:0x000000BC; // type:object size:0xC scope:local
7171
effName$4214 = .rodata:0x000000C8; // type:object size:0x8 scope:local
7272
localEffPos$4215 = .rodata:0x000000D0; // type:object size:0xC scope:local
@@ -75,23 +75,23 @@ localEffPos$4215 = .rodata:0x000000D0; // type:object size:0xC scope:local
7575
@4445 = .rodata:0x000000E4; // type:object size:0x4 scope:local
7676
@4446 = .rodata:0x000000E8; // type:object size:0x4 scope:local
7777
@4447 = .rodata:0x000000EC; // type:object size:0x4 scope:local
78-
@4541 = .rodata:0x000000F0; // type:object size:0x4 scope:local data:float
78+
@4541 = .rodata:0x000000F0; // type:object size:0x4 scope:local align:4 data:float
7979
@4576 = .rodata:0x000000F4; // type:object size:0x4 scope:local
8080
@4577 = .rodata:0x000000F8; // type:object size:0x4 scope:local
8181
@4578 = .rodata:0x000000FC; // type:object size:0x4 scope:local
8282
@4579 = .rodata:0x00000100; // type:object size:0x4 scope:local
8383
@4582 = .rodata:0x00000108; // type:object size:0x8 scope:local
84-
@4606 = .rodata:0x00000110; // type:object size:0x4 scope:local data:float
84+
@4606 = .rodata:0x00000110; // type:object size:0x4 scope:local align:4 data:float
8585
@4607 = .rodata:0x00000114; // type:object size:0x4 scope:local
8686
@4630 = .rodata:0x00000118; // type:object size:0x4 scope:local
8787
@4631 = .rodata:0x0000011C; // type:object size:0x4 scope:local
8888
@4632 = .rodata:0x00000120; // type:object size:0x4 scope:local
8989
@4633 = .rodata:0x00000124; // type:object size:0x4 scope:local data:string
9090
@4674 = .rodata:0x00000128; // type:object size:0x4 scope:local
9191
@4675 = .rodata:0x0000012C; // type:object size:0x4 scope:local
92-
@4749 = .rodata:0x00000130; // type:object size:0x4 scope:local data:float
92+
@4749 = .rodata:0x00000130; // type:object size:0x4 scope:local align:4 data:float
9393
@4763 = .rodata:0x00000134; // type:object size:0x4 scope:local
94-
@4868 = .rodata:0x00000138; // type:object size:0x4 scope:local data:float
94+
@4868 = .rodata:0x00000138; // type:object size:0x4 scope:local align:4 data:float
9595
@5356 = .rodata:0x0000013C; // type:object size:0x4 scope:local
9696
@5357 = .rodata:0x00000140; // type:object size:0x4 scope:local
9797
@5358 = .rodata:0x00000144; // type:object size:0x4 scope:local
@@ -112,6 +112,7 @@ tmpColor$5589 = .rodata:0x00000164; // type:object size:0x8 scope:local
112112
...data.0 = .data:0x00000000; // type:label scope:local
113113
cNullVec__6Z2Calc = .data:0x00000000; // type:object size:0xC scope:global
114114
@1787 = .data:0x0000000C; // type:object size:0x4 scope:local
115+
lbl_45_data_10 = .data:0x00000010; // type:object size:0x10
115116
@4777 = .data:0x00000020; // type:object size:0xC scope:local data:4byte
116117
@4874 = .data:0x0000002C; // type:object size:0xC scope:local
117118
@4974 = .data:0x00000038; // type:object size:0xC scope:local

config/GZ2E01/rels/d_a_b_bh/symbols.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ __destroy_global_chain_reference = .dtors:0x00000000; // type:object size:0x4 sc
4343
_dtors = .dtors:0x00000000; // type:label scope:global
4444
...rodata.0 = .rodata:0x00000000; // type:label scope:local
4545
@3764 = .rodata:0x00000000; // type:object size:0x4 scope:local
46-
@3778 = .rodata:0x00000004; // type:object size:0x4 scope:local data:float
47-
@3779 = .rodata:0x00000008; // type:object size:0x4 scope:local data:float
46+
@3778 = .rodata:0x00000004; // type:object size:0x4 scope:local align:4 data:float
47+
@3779 = .rodata:0x00000008; // type:object size:0x4 scope:local align:4 data:float
4848
@3946 = .rodata:0x0000000C; // type:object size:0x4 scope:local
4949
@3947 = .rodata:0x00000010; // type:object size:0x4 scope:local
5050
@3948 = .rodata:0x00000014; // type:object size:0x4 scope:local

0 commit comments

Comments
 (0)