Skip to content

Commit

Permalink
no1 dedupe has begun (#1973)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmidi authored Dec 5, 2024
1 parent a2c4012 commit 83afce7
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
4 changes: 4 additions & 0 deletions config/splat.us.stno1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ segments:
subalign: 4
subsegments:
- [0x0, data]
- [0x1A5C, .data, st_update]
- [0x1A88, .data, collision]
- [0x1E48, data]
- [0x34670, .rodata, first_c_file]
- [0x34670, .rodata, e_red_door]
- [0x348A8, .rodata, st_common]
Expand Down Expand Up @@ -67,4 +70,5 @@ segments:
- [0x4DDD8, c, unk_4DDD8]
- [0x55AF8, c, prim_helpers]
- [0x56328, sbss]
# - [0x57024, .bss, e_collect]
- [0x57064]
12 changes: 12 additions & 0 deletions config/symbols.us.stno1.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
g_EInitDamageNum = 0x801809BC;
D_80180C88 = 0x80180A58;
D_80180C94 = 0x80180A64;
D_80180CA0 = 0x80180A70;
g_testCollRandTable = 0x801814FC;
UNK_Invincibility0 = 0x80181A5C;
g_testCollEnemyLookup = 0x80181A88;
g_testCollLuckCutoff = 0x80181DA8;
g_testColluCoords = 0x80181DAC;
g_testCollvCoords = 0x80181DB4;
g_testCollElementLookup = 0x80181DBC;
g_testColliFrames = 0x80181DD0;
g_testCollPrizeTable = 0x80181DDC;
g_eDamageDisplayClut = 0x80181E38;
D_80182424 = 0x80182774;
D_80182488 = 0x801827D8;
D_801824B8 = 0x80182808;
Expand Down Expand Up @@ -113,3 +124,4 @@ PrimResetNext = 0x801D6164;
UnkPolyFunc2 = 0x801D6244;
UnkPolyFunc0 = 0x801D6298;
PrimDecreaseBrightness = 0x801D62C4;
g_ItemIconSlots = 0x801D7024;
6 changes: 1 addition & 5 deletions src/st/no1/collision.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "common.h"

INCLUDE_ASM("st/no1/nonmatchings/collision", HitDetection);

INCLUDE_ASM("st/no1/nonmatchings/collision", EntityDamageDisplay);
#include "../collision.h"
6 changes: 6 additions & 0 deletions src/st/no1/no1.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "stage.h"

#define STAGE_IS_NO1

#define OVL_EXPORT(x) NO1_##x
9 changes: 2 additions & 7 deletions src/st/no1/st_update.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
#include "common.h"

INCLUDE_ASM("st/no1/nonmatchings/st_update", Random);

INCLUDE_ASM("st/no1/nonmatchings/st_update", Update);

INCLUDE_ASM("st/no1/nonmatchings/st_update", UpdateStageEntities);
#include "no1.h"
#include "../st_update.h"

0 comments on commit 83afce7

Please sign in to comment.