updated to newest libSiliconPatch.dll
This commit is contained in:
2
main.go
2
main.go
@@ -6,7 +6,7 @@ import (
|
|||||||
"turtlesilicon/pkg/ui" // Updated import path
|
"turtlesilicon/pkg/ui" // Updated import path
|
||||||
)
|
)
|
||||||
|
|
||||||
const appVersion = "1.0.3" // Added version constant
|
const appVersion = "1.0.4"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
myApp := app.NewWithID("com.tairasu.turtlesilicon")
|
myApp := app.NewWithID("com.tairasu.turtlesilicon")
|
||||||
|
@@ -25,12 +25,13 @@ func PatchTurtleWoW(myWindow fyne.Window, updateAllStatuses func()) {
|
|||||||
|
|
||||||
targetWinerosettaDll := filepath.Join(paths.TurtlewowPath, "winerosetta.dll")
|
targetWinerosettaDll := filepath.Join(paths.TurtlewowPath, "winerosetta.dll")
|
||||||
targetD3d9Dll := filepath.Join(paths.TurtlewowPath, "d3d9.dll")
|
targetD3d9Dll := filepath.Join(paths.TurtlewowPath, "d3d9.dll")
|
||||||
|
targetLibSiliconPatchDll := filepath.Join(paths.TurtlewowPath, "libSiliconPatch.dll")
|
||||||
targetRosettaX87Dir := filepath.Join(paths.TurtlewowPath, "rosettax87")
|
targetRosettaX87Dir := filepath.Join(paths.TurtlewowPath, "rosettax87")
|
||||||
dllsTextFile := filepath.Join(paths.TurtlewowPath, "dlls.txt")
|
dllsTextFile := filepath.Join(paths.TurtlewowPath, "dlls.txt")
|
||||||
|
|
||||||
filesToCopy := map[string]string{
|
filesToCopy := map[string]string{
|
||||||
"winerosetta/winerosetta.dll": targetWinerosettaDll,
|
"winerosetta/winerosetta.dll": targetWinerosettaDll,
|
||||||
"winerosetta/d3d9.dll": targetD3d9Dll,
|
"winerosetta/d3d9.dll": targetD3d9Dll,
|
||||||
|
"winerosetta/libSiliconPatch.dll": targetLibSiliconPatchDll,
|
||||||
}
|
}
|
||||||
|
|
||||||
for resourceName, destPath := range filesToCopy {
|
for resourceName, destPath := range filesToCopy {
|
||||||
|
@@ -68,6 +68,7 @@ func UpdateAllStatuses() {
|
|||||||
turtlewowPathLabel.Segments = []widget.RichTextSegment{&widget.TextSegment{Text: paths.TurtlewowPath, Style: widget.RichTextStyle{ColorName: theme.ColorNameSuccess}}}
|
turtlewowPathLabel.Segments = []widget.RichTextSegment{&widget.TextSegment{Text: paths.TurtlewowPath, Style: widget.RichTextStyle{ColorName: theme.ColorNameSuccess}}}
|
||||||
winerosettaDllPath := filepath.Join(paths.TurtlewowPath, "winerosetta.dll")
|
winerosettaDllPath := filepath.Join(paths.TurtlewowPath, "winerosetta.dll")
|
||||||
d3d9DllPath := filepath.Join(paths.TurtlewowPath, "d3d9.dll")
|
d3d9DllPath := filepath.Join(paths.TurtlewowPath, "d3d9.dll")
|
||||||
|
libSiliconPatchDllPath := filepath.Join(paths.TurtlewowPath, "libSiliconPatch.dll")
|
||||||
rosettaX87DirPath := filepath.Join(paths.TurtlewowPath, "rosettax87")
|
rosettaX87DirPath := filepath.Join(paths.TurtlewowPath, "rosettax87")
|
||||||
dllsTextFile := filepath.Join(paths.TurtlewowPath, "dlls.txt")
|
dllsTextFile := filepath.Join(paths.TurtlewowPath, "dlls.txt")
|
||||||
rosettaX87ExePath := filepath.Join(rosettaX87DirPath, "rosettax87")
|
rosettaX87ExePath := filepath.Join(rosettaX87DirPath, "rosettax87")
|
||||||
@@ -76,14 +77,16 @@ func UpdateAllStatuses() {
|
|||||||
dllsFileValid := false
|
dllsFileValid := false
|
||||||
if utils.PathExists(dllsTextFile) {
|
if utils.PathExists(dllsTextFile) {
|
||||||
if fileContent, err := os.ReadFile(dllsTextFile); err == nil {
|
if fileContent, err := os.ReadFile(dllsTextFile); err == nil {
|
||||||
if strings.Contains(string(fileContent), "winerosetta.dll") {
|
contentStr := string(fileContent)
|
||||||
|
if strings.Contains(contentStr, "winerosetta.dll") && strings.Contains(contentStr, "libSiliconPatch.dll") {
|
||||||
dllsFileValid = true
|
dllsFileValid = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if utils.PathExists(winerosettaDllPath) && utils.PathExists(d3d9DllPath) && utils.DirExists(rosettaX87DirPath) &&
|
if utils.PathExists(winerosettaDllPath) && utils.PathExists(d3d9DllPath) && utils.PathExists(libSiliconPatchDllPath) &&
|
||||||
utils.PathExists(rosettaX87ExePath) && utils.PathExists(libRuntimeRosettaX87Path) && dllsFileValid {
|
utils.DirExists(rosettaX87DirPath) && utils.PathExists(rosettaX87ExePath) &&
|
||||||
|
utils.PathExists(libRuntimeRosettaX87Path) && dllsFileValid {
|
||||||
paths.PatchesAppliedTurtleWoW = true
|
paths.PatchesAppliedTurtleWoW = true
|
||||||
} else {
|
} else {
|
||||||
// paths.PatchesAppliedTurtleWoW = false
|
// paths.PatchesAppliedTurtleWoW = false
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user