Skip to content

Commit 3c828fc

Browse files
committed
sa1: reference stage.c from sa2
1 parent 3d17f86 commit 3c828fc

18 files changed

Lines changed: 102 additions & 1354 deletions

File tree

include/game/shared/stage/player.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ typedef struct {
293293
} MaybeSuperSonic; /* size: 0x8C */
294294
#endif
295295

296+
void CreatePlayer(u32 UNUSED characterId, u32 levelId, Player *player);
296297
s32 SA2_LABEL(sub_8022F58)(u8 param0, Player *p);
297298

298299
extern Player gPlayer;

include/game/shared/stage/stage.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
#include "constants/sa2/zones.h"
1111
#endif
1212

13+
#if (GAME == GAME_SA1)
14+
void ApplyGameStageSettingsAndStart(void);
15+
#elif (GAME == GAME_SA2)
1316
void ApplyGameStageSettings(void);
1417
void GameStageStart(void);
18+
#endif
1519
void CreateGameStage(void);
1620
void GoToNextLevel(void);
1721

sa1/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ SA2_C_FILES := \
275275
src/game/shared/stage/water_effects.c \
276276
src/game/shared/stage/spot_light_beam_task.c \
277277
src/game/shared/stage/camera.c \
278+
src/game/shared/stage/stage.c \
278279
src/game/sa1/ui/game_2_0.c \
279280
src/game/sa1/ui/game_2_1.c \
280281
src/game/sa1/ui/stage_results.c \

sa1/asm/non_matching/game/sa1/ui/time_attack_records__Task_806BBC0.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
strh r6, [r0, #4]
5353
ldr r0, [r5]
5454
bl TaskDestroy
55-
bl ApplyGameStageSettings
55+
bl ApplyGameStageSettingsAndStart
5656
b _0806BCF6
5757
.align 2, 0
5858
_0806BC30: .4byte gCurTask

sa1/data/sa1/data_0_6_1.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ C_DECL(gUnknown_0868B6B8):
2626

2727
.global C_DECL(gUnknown_0868B6C4)
2828
C_DECL(gUnknown_0868B6C4):
29-
mPtr C_DECL(ApplyGameStageSettings)
29+
mPtr C_DECL(ApplyGameStageSettingsAndStart)
3030
mPtr C_DECL(sub_806A66C)
3131
mPtr C_DECL(sub_806A680)
3232
mPtr C_DECL(sub_806A68C)

sa1/ldscript.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ SECTIONS {
113113
sa2/src/game/game.o(.text);
114114
sa2/src/game/dummy_task.o(.text);
115115

116-
src/game/shared/stage/stage.o(.text);
116+
sa2/src/game/shared/stage/stage.o(.text);
117117
sa2/src/game/shared/stage/camera.o(.text);
118118
sa2/src/game/shared/stage/terrain_collision.o(.text);
119119
sa2/src/game/shared/stage/mp_sprite_task.o(.text);
@@ -344,7 +344,7 @@ SECTIONS {
344344
sa2/src/game/shared/multiplayer/communication_outcome.o(.rodata);
345345
sa2/src/game/shared/stage/amy_attack_heart_effect.o(.rodata);
346346
sa2/src/game/shared/stage/music_manager.o(.rodata);
347-
src/game/shared/stage/stage.o(.rodata);
347+
sa2/src/game/shared/stage/stage.o(.rodata);
348348
sa2/src/game/shared/stage/camera.o(.rodata);
349349
src/data/sa1/tilemap_table.o(.rodata);
350350
sa2/src/game/shared/stage/terrain_collision.o(.rodata);

0 commit comments

Comments
 (0)