fix size check
This commit is contained in:
@@ -299,11 +299,11 @@ func showTroubleshootingPopup() {
|
|||||||
troubleshootingCloseButton = widget.NewButton("Close", func() {})
|
troubleshootingCloseButton = widget.NewButton("Close", func() {})
|
||||||
|
|
||||||
popupContent := container.NewBorder(
|
popupContent := container.NewBorder(
|
||||||
nil, // top
|
nil, // top
|
||||||
container.NewCenter(troubleshootingCloseButton), // bottom
|
container.NewCenter(troubleshootingCloseButton), // bottom
|
||||||
nil, // left
|
nil, // left
|
||||||
nil, // right
|
nil, // right
|
||||||
container.NewPadded(scrollContainer), // center
|
container.NewPadded(scrollContainer), // center
|
||||||
)
|
)
|
||||||
|
|
||||||
windowSize := currentWindow.Content().Size()
|
windowSize := currentWindow.Content().Size()
|
||||||
|
@@ -120,14 +120,12 @@ func updateEpochStatus() {
|
|||||||
// Check if patched files have the correct size (matches bundled versions)
|
// Check if patched files have the correct size (matches bundled versions)
|
||||||
winerosettaDllCorrectSize := utils.CompareFileWithBundledResource(winerosettaDllPath, "winerosetta/winerosetta.dll")
|
winerosettaDllCorrectSize := utils.CompareFileWithBundledResource(winerosettaDllPath, "winerosetta/winerosetta.dll")
|
||||||
d3d9DllCorrectSize := utils.CompareFileWithBundledResource(d3d9DllPath, "winerosetta/d3d9.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) &&
|
if utils.PathExists(winerosettaDllPath) && utils.PathExists(d3d9DllPath) &&
|
||||||
utils.DirExists(rosettaX87DirPath) && utils.PathExists(rosettaX87ExePath) &&
|
utils.DirExists(rosettaX87DirPath) && utils.PathExists(rosettaX87ExePath) &&
|
||||||
utils.PathExists(libRuntimeRosettaX87Path) && dllsFileValid &&
|
utils.PathExists(libRuntimeRosettaX87Path) && dllsFileValid &&
|
||||||
winerosettaDllCorrectSize && d3d9DllCorrectSize &&
|
winerosettaDllCorrectSize && d3d9DllCorrectSize &&
|
||||||
rosettaX87CorrectSize && libRuntimeRosettaX87CorrectSize && epochPatchesApplied {
|
epochPatchesApplied {
|
||||||
paths.PatchesAppliedEpoch = true
|
paths.PatchesAppliedEpoch = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user