From f7a6ed25f85c3b0d7be13bf73ebc4e287b0161bd Mon Sep 17 00:00:00 2001 From: kamoo1 <4003844+kamoo1@users.noreply.github.com> Date: Wed, 14 Aug 2024 15:17:51 +0800 Subject: [PATCH] fix(ui): update `AppHelper.lua` patch disables hash match precondition --- data/AppHelper.lua.diff | 12 ++++++------ data/AppHelper.lua.sha256 | 1 - data/patches.json | 6 ------ 3 files changed, 6 insertions(+), 13 deletions(-) delete mode 100644 data/AppHelper.lua.sha256 diff --git a/data/AppHelper.lua.diff b/data/AppHelper.lua.diff index d7733b7..88a26af 100644 --- a/data/AppHelper.lua.diff +++ b/data/AppHelper.lua.diff @@ -1,8 +1,8 @@ -@@ -4078,41 +4078,8 @@ +@@ -5782,40 +5782,8 @@ nil%0A --%09if Environment.IsRetail() then%0A%09 +-%09if ClientInfo.IsRetail() then%0A%09 + %09reg +@@ -5824,199 +5824,8 @@ + n()%0A +-%09else%0A%09%09local currentRealmName = private.SanitizedRealmName(SessionInfo.GetRealmName())%0A%09%09local realmInfo = RealmData.Classic%5BcurrentRealmName%5D%0A%09%09region = realmInfo and realmInfo.region%0A%09end%0A %09reg -@@ -4165,191 +4165,8 @@ - TR%22%0A --%09else%0A%09%09local currentRealmName = private.SanitizedRealmName(Wow.GetRealmName())%0A%09%09region = ClassicRealms.GetRegion(currentRealmName) or (cVar ~= %22public-test%22 and cVar) or %22PTR%22%0A%09end%0A - %09if diff --git a/data/AppHelper.lua.sha256 b/data/AppHelper.lua.sha256 deleted file mode 100644 index 11e69b2..0000000 --- a/data/AppHelper.lua.sha256 +++ /dev/null @@ -1 +0,0 @@ -46012d3a76b5d08192391ae1b83335f4fe89a0695321f3e87cf07b38b460affb diff --git a/data/patches.json b/data/patches.json index 445c5a0..7177032 100644 --- a/data/patches.json +++ b/data/patches.json @@ -43,22 +43,16 @@ ], [ "--in_place", - "--src_digest", - "data/AppHelper.lua.sha256", "{warcraft_base}/_retail_/Interface/AddOns/TradeSkillMaster/Core/Lib/AppHelper.lua", "data/AppHelper.lua.diff" ], [ "--in_place", - "--src_digest", - "data/AppHelper.lua.sha256", "{warcraft_base}/_classic_/Interface/AddOns/TradeSkillMaster/Core/Lib/AppHelper.lua", "data/AppHelper.lua.diff" ], [ "--in_place", - "--src_digest", - "data/AppHelper.lua.sha256", "{warcraft_base}/_classic_era_/Interface/AddOns/TradeSkillMaster/Core/Lib/AppHelper.lua", "data/AppHelper.lua.diff" ]