From f5e37de74634bd6284dae37ef4a7cf53d55e39db Mon Sep 17 00:00:00 2001 From: PJB3005 Date: Mon, 2 Mar 2026 20:38:28 +0100 Subject: [PATCH] Disable vrbox/vrbox2 rendering Code's broken in the original game but happens to work due to luck, causes hard crash on Dusk. --- src/d/actor/d_a_vrbox.cpp | 6 ++++++ src/d/actor/d_a_vrbox2.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/d/actor/d_a_vrbox.cpp b/src/d/actor/d_a_vrbox.cpp index 681ed0ed92..4df3e233b8 100644 --- a/src/d/actor/d_a_vrbox.cpp +++ b/src/d/actor/d_a_vrbox.cpp @@ -12,6 +12,12 @@ static int daVrbox_color_set(vrbox_class* i_this); static int daVrbox_Draw(vrbox_class* i_this) { +#if TARGET_PC + // This code is broken but happens to work on hardware. Does not work on PC. + // Not decomp's fault! + return 1; +#endif + J3DModel* soraModel_p = i_this->mpSoraModel; f32 fvar = 0.0f; dStage_FileList_dt_c* filelist_p = NULL; diff --git a/src/d/actor/d_a_vrbox2.cpp b/src/d/actor/d_a_vrbox2.cpp index 33d9a27762..d86f2d74f3 100644 --- a/src/d/actor/d_a_vrbox2.cpp +++ b/src/d/actor/d_a_vrbox2.cpp @@ -25,6 +25,12 @@ static void texScrollCheck(f32& param_0) { } static int daVrbox2_Draw(vrbox2_class* i_this) { +#if TARGET_PC + // This code is broken but happens to work on hardware. Does not work on PC. + // Not decomp's fault! + return 1; +#endif + camera_class* camera_p; dKankyo_sunlenz_Packet* lenz_p; J3DModel* kumo_model_p;