Skip to content

Commit 8fa223b

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into NTSC
2 parents aa72800 + 73be4e5 commit 8fa223b

File tree

4 files changed

+5
-18
lines changed

4 files changed

+5
-18
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ set_property(GLOBAL PROPERTY USE_FOLDERS ON)
8888
# Set GBI version
8989
################################################################################
9090

91-
add_compile_definitions(F3DEX_GBI_2)
91+
set(GBI_UCODE F3DEX_GBI_2)
9292

9393
################################################################################
9494
# Sub-projects

soh/soh/Enhancements/cosmetics/authenticGfxPatches.cpp

-16
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ extern "C" {
99
#include "objects/object_gi_soldout/object_gi_soldout.h"
1010
#include "objects/object_ik/object_ik.h"
1111
#include "objects/object_link_child/object_link_child.h"
12-
#include "objects/object_ru2/object_ru2.h"
1312

1413
uint32_t ResourceMgr_GameHasMasterQuest();
1514
uint32_t ResourceMgr_GameHasOriginal();
@@ -189,25 +188,10 @@ void PatchIronKnuckleTextureOverflow() {
189188
}
190189
}
191190

192-
void PatchPrincessRutoEaring() {
193-
// FAST3D: This is a hack for the issue of both TEXEL0 and TEXEL1 using the same texture with different settings.
194-
// Ruto's earring uses both TEXEL0 and TEXEL1 to render. The issue is that it never loads anything into TEXEL1, so
195-
// it reuses whatever happens to be there, which is the water temple brick texture. It just so happens that the
196-
// earring texture loads into the same place in TMEM as the brick texture, so when it comes to rendering, TEXEL1
197-
// uses the earring texture with different clamp settings, and it displays without noticeable error. However, both
198-
// texel samplers are not intended to be used for the same texture with different settings, so this misuse confuses
199-
// our texture cache, and we load the wrong settings for the earrings texture. This patch is a hack that replaces
200-
// TEXEL1 with TEXEL0, which is most likely the original intention, and all is well.
201-
ResourceMgr_PatchGfxByName(gAdultRutoHeadDL, "RutoEaringTileFix", 162,
202-
gsDPSetCombineLERP(TEXEL0, 0, PRIMITIVE, 0, TEXEL0, 0, ENVIRONMENT, 0, 0, 0, 0, COMBINED,
203-
TEXEL0, 0, PRIM_LOD_FRAC, COMBINED));
204-
}
205-
206191
void ApplyAuthenticGfxPatches() {
207192
PatchDekuStickTextureOverflow();
208193
PatchFreezardTextureOverflow();
209194
PatchIronKnuckleTextureOverflow();
210-
PatchPrincessRutoEaring();
211195
}
212196

213197
// Patches the Sold Out GI DL to render the texture in the mirror boundary

soh/soh/SohGui.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,9 @@ namespace SohGui {
206206
}
207207

208208
void Destroy() {
209+
auto gui = Ship::Context::GetInstance()->GetWindow()->GetGui();
210+
gui->RemoveAllGuiWindows();
211+
209212
mModalWindow = nullptr;
210213
mAdvancedResolutionSettingsWindow = nullptr;
211214
mRandomizerSettingsWindow = nullptr;

0 commit comments

Comments
 (0)