fixed gofmt
This commit is contained in:
@@ -98,12 +98,12 @@ func updateTurtleWoWStatus() {
|
||||
if fileContent, err := os.ReadFile(dllsTextFile); err == nil {
|
||||
contentStr := string(fileContent)
|
||||
winerosettaPresent := strings.Contains(contentStr, "winerosetta.dll")
|
||||
|
||||
|
||||
// Check if libSiliconPatch should be present based on user preference
|
||||
prefs, _ := utils.LoadPrefs()
|
||||
libSiliconPatchRequired := prefs.EnableLibSiliconPatch
|
||||
libSiliconPatchPresent := strings.Contains(contentStr, "libSiliconPatch.dll")
|
||||
|
||||
|
||||
// Validate dlls.txt: winerosetta must be present, libSiliconPatch based on setting
|
||||
if winerosettaPresent && (!libSiliconPatchRequired || libSiliconPatchPresent) {
|
||||
dllsFileValid = true
|
||||
|
@@ -2,8 +2,8 @@ package ui
|
||||
|
||||
import (
|
||||
"turtlesilicon/pkg/debug"
|
||||
"turtlesilicon/pkg/paths"
|
||||
"turtlesilicon/pkg/patching"
|
||||
"turtlesilicon/pkg/paths"
|
||||
"turtlesilicon/pkg/utils"
|
||||
|
||||
"fyne.io/fyne/v2"
|
||||
|
@@ -46,12 +46,12 @@ var (
|
||||
envVarsEntry *widget.Entry
|
||||
|
||||
// Graphics settings checkboxes
|
||||
reduceTerrainDistanceCheckbox *widget.Check
|
||||
setMultisampleTo2xCheckbox *widget.Check
|
||||
setShadowLOD0Checkbox *widget.Check
|
||||
libSiliconPatchCheckbox *widget.Check
|
||||
applyGraphicsSettingsButton *widget.Button
|
||||
|
||||
reduceTerrainDistanceCheckbox *widget.Check
|
||||
setMultisampleTo2xCheckbox *widget.Check
|
||||
setShadowLOD0Checkbox *widget.Check
|
||||
libSiliconPatchCheckbox *widget.Check
|
||||
applyGraphicsSettingsButton *widget.Button
|
||||
|
||||
// Graphics settings help buttons
|
||||
reduceTerrainDistanceHelpButton *widget.Button
|
||||
setMultisampleTo2xHelpButton *widget.Button
|
||||
|
Reference in New Issue
Block a user