From 4f8ab1c9c818fc2739fd9d77bf581ffbfb76799f Mon Sep 17 00:00:00 2001 From: Hao Guan <10684225+hguandl@users.noreply.github.com> Date: Tue, 4 Apr 2023 04:17:05 +1000 Subject: [PATCH] Update MaaTools --- Cartfile.resolved | 2 +- PlayCover/Utils/PlayTools.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cartfile.resolved b/Cartfile.resolved index 1adcfc2a8..e726204ec 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1 +1 @@ -github "hguandl/PlayTools" "a93656743041d60d2d0a3f779a1c51f7f10ef1af" +github "hguandl/PlayTools" "f42ae25eee2cc8b477ff025c1879b92a4e60c860" diff --git a/PlayCover/Utils/PlayTools.swift b/PlayCover/Utils/PlayTools.swift index b119491f6..f3feda662 100644 --- a/PlayCover/Utils/PlayTools.swift +++ b/PlayCover/Utils/PlayTools.swift @@ -76,7 +76,7 @@ class PlayTools { try Macho.stripBinary(&binary) Inject.injectMachO(machoPath: exec.path, - cmdType: .LOAD_DYLIB, + cmdType: .loadDylib, backup: false, injectPath: playToolsPath.path, finishHandle: { result in @@ -118,7 +118,7 @@ class PlayTools { try Macho.stripBinary(&binary) Inject.injectMachO(machoPath: exec.path, - cmdType: .LOAD_DYLIB, + cmdType: .loadDylib, backup: false, injectPath: "@executable_path/Frameworks/PlayTools.dylib", finishHandle: { result in @@ -172,7 +172,7 @@ class PlayTools { static func removeFromApp(_ exec: URL) { Inject.removeMachO(machoPath: exec.path, - cmdType: .LOAD_DYLIB, + cmdType: .loadDylib, backup: false, injectPath: playToolsPath.path, finishHandle: { result in