set shadowLOD as main patching process

This commit is contained in:
aomizu
2025-06-16 23:25:19 +09:00
parent c0daa300bf
commit 084e980adf
5 changed files with 155 additions and 5 deletions

View File

@@ -419,7 +419,6 @@ func showRecommendedSettingsHelpPopup() {
setting1 := widget.NewLabel("• Terrain Distance (farclip): 177 - Reduces CPU overhead - more fps")
setting2 := widget.NewLabel("• Vertex Animation Shaders (M2UseShaders): Enabled - Prevents graphic glitches")
setting3 := widget.NewLabel("• Multisampling (gxMultisample): 2x - Makes portraits load properly")
setting4 := widget.NewLabel("• Shadow LOD (shadowLOD): 0 - 10% fps increase")
settingsContainer := container.NewVBox(
settingsTitle,
@@ -427,7 +426,6 @@ func showRecommendedSettingsHelpPopup() {
setting1,
setting2,
setting3,
setting4,
widget.NewSeparator(),
)

View File

@@ -6,6 +6,7 @@ import (
"strings"
"time"
"turtlesilicon/pkg/patching"
"turtlesilicon/pkg/paths"
"turtlesilicon/pkg/service"
"turtlesilicon/pkg/utils"
@@ -109,11 +110,14 @@ func updateTurtleWoWStatus() {
rosettaX87CorrectSize := utils.CompareFileWithBundledResource(rosettaX87ExePath, "rosettax87/rosettax87")
libRuntimeRosettaX87CorrectSize := utils.CompareFileWithBundledResource(libRuntimeRosettaX87Path, "rosettax87/libRuntimeRosettax87")
// Check if shadowLOD setting is applied
shadowLODApplied := patching.CheckShadowLODSetting()
if utils.PathExists(winerosettaDllPath) && utils.PathExists(d3d9DllPath) && utils.PathExists(libSiliconPatchDllPath) &&
utils.DirExists(rosettaX87DirPath) && utils.PathExists(rosettaX87ExePath) &&
utils.PathExists(libRuntimeRosettaX87Path) && dllsFileValid &&
winerosettaDllCorrectSize && d3d9DllCorrectSize && libSiliconPatchCorrectSize &&
rosettaX87CorrectSize && libRuntimeRosettaX87CorrectSize {
rosettaX87CorrectSize && libRuntimeRosettaX87CorrectSize && shadowLODApplied {
paths.PatchesAppliedTurtleWoW = true
}
}