From ca77c609cde4fb5fb9a221014662be534787503c Mon Sep 17 00:00:00 2001 From: Evan Burkey Date: Fri, 25 Jul 2025 21:56:32 -0700 Subject: [PATCH] fix size check --- pkg/ui/popup.go | 8 ++++---- pkg/ui/status.go | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pkg/ui/popup.go b/pkg/ui/popup.go index b8193eb..7751200 100644 --- a/pkg/ui/popup.go +++ b/pkg/ui/popup.go @@ -299,11 +299,11 @@ func showTroubleshootingPopup() { troubleshootingCloseButton = widget.NewButton("Close", func() {}) popupContent := container.NewBorder( - nil, // top + nil, // top container.NewCenter(troubleshootingCloseButton), // bottom - nil, // left - nil, // right - container.NewPadded(scrollContainer), // center + nil, // left + nil, // right + container.NewPadded(scrollContainer), // center ) windowSize := currentWindow.Content().Size() diff --git a/pkg/ui/status.go b/pkg/ui/status.go index d839d85..290c006 100644 --- a/pkg/ui/status.go +++ b/pkg/ui/status.go @@ -120,14 +120,12 @@ func updateEpochStatus() { // Check if patched files have the correct size (matches bundled versions) winerosettaDllCorrectSize := utils.CompareFileWithBundledResource(winerosettaDllPath, "winerosetta/winerosetta.dll") d3d9DllCorrectSize := utils.CompareFileWithBundledResource(d3d9DllPath, "winerosetta/d3d9.dll") - rosettaX87CorrectSize := utils.CompareFileWithBundledResource(rosettaX87ExePath, "rosettax87/rosettax87") - libRuntimeRosettaX87CorrectSize := utils.CompareFileWithBundledResource(libRuntimeRosettaX87Path, "rosettax87/libRuntimeRosettax87") if utils.PathExists(winerosettaDllPath) && utils.PathExists(d3d9DllPath) && utils.DirExists(rosettaX87DirPath) && utils.PathExists(rosettaX87ExePath) && utils.PathExists(libRuntimeRosettaX87Path) && dllsFileValid && winerosettaDllCorrectSize && d3d9DllCorrectSize && - rosettaX87CorrectSize && libRuntimeRosettaX87CorrectSize && epochPatchesApplied { + epochPatchesApplied { paths.PatchesAppliedEpoch = true }