summaryrefslogtreecommitdiff
path: root/src/d/d_stage.cpp
diff options
context:
space:
mode:
authorTakaRikka <38417346+TakaRikka@users.noreply.github.com>2025-06-27 03:14:58 -0700
committerGitHub <noreply@github.com>2025-06-27 13:14:58 +0300
commit79c56b254885b006f0fdec184b0ba06fbd3746a3 (patch)
tree3b10ab9144abba0e644d026bcc12c0cf5d3efcb3 /src/d/d_stage.cpp
parent028c07d47d41b10ba8fbef0ef4240751db74776f (diff)
add wii usa rev0 support (#2505)
* wii usa rev0 dol building ok * wii dol cleanup * some wii tests * most rels building
Diffstat (limited to 'src/d/d_stage.cpp')
-rw-r--r--src/d/d_stage.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/d/d_stage.cpp b/src/d/d_stage.cpp
index 8204664d57..28a71382a3 100644
--- a/src/d/d_stage.cpp
+++ b/src/d/d_stage.cpp
@@ -10,6 +10,7 @@
#include "stdio.h"
#include "SSystem/SComponent/c_malloc.h"
#include "d/d_com_inf_game.h"
+#include "d/actor/d_a_alink.h"
#include "d/d_lib.h"
#include "d/d_map_path_dmap.h"
#include "d/d_map_path_fmap.h"
@@ -2793,3 +2794,11 @@ void dStage_restartRoom(u32 roomParam, u32 mode, int param_2) {
mode, 0, 0, 0, param_2, 0);
dComIfGs_setRestartRoomParam(roomParam);
}
+
+#if VERSION == VERSION_WII_USA_R0
+void dStage_escapeRestart() {
+ daAlink_c* player_p = daAlink_getAlinkActorClass();
+ dComIfGs_setTurnRestart(player_p->current.pos, player_p->shape_angle.y, fopAcM_GetRoomNo(player_p), fopAcM_GetParam(player_p));
+ dComIfGp_setNextStage(dComIfGp_getStartStageName(), -2, dComIfGs_getTurnRestartRoomNo(), -1, 0.0f, 0, 0, 9, 0, 1, 0);
+}
+#endif