From a803d5a4ecf59ba985013c360f1fcd84eac02a3d Mon Sep 17 00:00:00 2001 From: fgsfds Date: Fri, 11 Aug 2023 18:18:16 +0200 Subject: [PATCH] port: stub out G_RDPHALF_ commands this will temporarily prevent crashing in combat sim but will result in black skies on maps that use this --- port/fast3d/gfx_pc.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/port/fast3d/gfx_pc.cpp b/port/fast3d/gfx_pc.cpp index c38dbf86a..fd9f9cf81 100644 --- a/port/fast3d/gfx_pc.cpp +++ b/port/fast3d/gfx_pc.cpp @@ -2480,6 +2480,12 @@ static void gfx_run_dl(Gfx* cmd) { case G_RDPSETOTHERMODE: gfx_dp_set_other_mode(C0(0, 24), cmd->words.w1); break; + case (uint8_t)G_RDPHALF_1: + case (uint8_t)G_RDPHALF_2: + case (uint8_t)G_RDPHALF_CONT: + // TODO: skyRender uses these to render some types of skies and skybox water + // by issuing low-level ucode commands G_TRI_FILL and G_TRI_SHADE_TXTR + break; case G_RDPPIPESYNC: case G_RDPFULLSYNC: case G_RDPLOADSYNC: