From f9b5e52a8bcbdfcdad12e7b7178e1ee0e6de084c Mon Sep 17 00:00:00 2001 From: "Skyth (Asilkan)" <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Mon, 3 Mar 2025 01:59:35 +0300 Subject: [PATCH] Implement fix for buggy Adabat assets hanging async PSO compiler. (#618) --- UnleashedRecomp/gpu/video.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 42f122c..79c6c93 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -6833,6 +6833,13 @@ void GetDatabaseDataMidAsmHook(PPCRegister& r1, PPCRegister& r4) if (isParticleModel) return; + + // Adabat water is broken in original game, which they tried to fix by partially including the files in the update, + // which then finally fixed for real in the DLC. This confuses the async PSO compiler and causes a hang if the DLC is missing. + // We'll just ignore it. + bool isAdabatWater = strcmp(databaseData->m_TypeAndName.c_str() + 2, "evl_sea_obj_st_waterCircle") == 0; + if (isAdabatWater) + return; } databaseData->m_Flags |= eDatabaseDataFlags_CompilingPipelines;