From 7f03b9d679b91b8a1a09da9ab540c4a57d9b25e5 Mon Sep 17 00:00:00 2001 From: Xian55 <367101+Xian55@users.noreply.github.com> Date: Sat, 10 Dec 2022 14:57:20 +0100 Subject: [PATCH] Fix: Cursors: Repair icon was not matched while using WOTLK classic --- Core/Cursor/CursorClassifier.cs | 6 +++--- Cursors/14185844589096599552.bmp | Bin 0 -> 1541 bytes Cursors/16208728271425052189.bmp | Bin 0 -> 1247 bytes Cursors/16491828335798648832.bmp | Bin 0 -> 1290 bytes 4 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 Cursors/14185844589096599552.bmp create mode 100644 Cursors/16208728271425052189.bmp create mode 100644 Cursors/16491828335798648832.bmp diff --git a/Core/Cursor/CursorClassifier.cs b/Core/Cursor/CursorClassifier.cs index 0838ba15d..b79ea5c11 100644 --- a/Core/Cursor/CursorClassifier.cs +++ b/Core/Cursor/CursorClassifier.cs @@ -21,13 +21,13 @@ public sealed class CursorClassifier private static readonly ulong[][] imageHashes = { new ulong[] { 4645529528554094592, 4665762466636896256, 6376251547633783040, 6376251547633783552 }, - new ulong[] { 9286546093378506253, 16208728271425048093 }, + new ulong[] { 9286546093378506253, 16208728271425048093, 16208728271425052189 }, new ulong[] { 16205332705670085656, 16495805933079509016 }, new ulong[] { 13901748381153107456, 16207591392111181312 }, new ulong[] { 4669700909741929478, 4669700909674820614 }, new ulong[] { 4683320813727784960, 4669700909741929478, 4683461550142398464 }, new ulong[] { 17940331276560775168, 17940331276594329600, 17940331276594460672 }, - new ulong[] { 16207573517913036808, 4669140166357294088 }, + new ulong[] { 16207573517913036808, 4669140166357294088, 14185844589096599552, 16491828335798648832 }, new ulong[] { 4667452417086599168, 4676529985085517824 }, new ulong[] { 4682718988357606424, 4682718988358655000 } }; @@ -76,7 +76,7 @@ public void Classify(out CursorType classification) ulong cursorHash = ImageHashing.AverageHash(bitmap, workBitmap, workGraphics); if (saveImage) { - string path = Path.Join("..", "Cursors", $"{cursorHash}.bmp"); + string path = Path.Join("..", "..", "..", "..", "Cursors", $"{cursorHash}.bmp"); if (!File.Exists(path)) { bitmap.Save(path); diff --git a/Cursors/14185844589096599552.bmp b/Cursors/14185844589096599552.bmp new file mode 100644 index 0000000000000000000000000000000000000000..3d4e58518174159936f048c2139c66151889f021 GIT binary patch literal 1541 zcmV+g2KxDlP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1)51jK~z{r?N@(H zlyw{i?hfvbJ0~J0pq7A6KoUWLlTJj91%jJW8xv0*xQU!)(yH1vlyq&}toH)b#T5g8nhc3W2LfH#)&D6lI_(&*B6h zZ8Dus=LGG!*a6)CRj%qiJ~tVCUA{X!Fxa&R*K4-m+ObWz^i>v`hlBe(49-5#cxf=f zGztBe&j@gPQzKeVoe%=dzV0q8oFC;R;&{__V4(Fw{M58ds&Dyt@i6d_4d-h#s*_>! z+P9$~SNe6gqT?On%N(H#0^dJt|iY3o= zwkdfE7E7GWBa{9kM#yf^{|(NnjRq6$-Ma()c^S8Qzs2eL8j+V*HR}|~sm9UDa@Y>+ z$Ns`18Pj{^GQKF-3$4y5HjLH_F2Q{bMm#ljib$=X0wC z+KRuFjwkS?^X>TlVyAe`YL_othK!Y~M1`cZSaptv!xbxUoi_~1eMh$| zORc}hDJPTbzj$9h?%ug6)-d-Md?wHQrv%AZ>!O8N5F3MqiSv+=mZHA<=-|%f>FJ4~ zp&^{@XpoNXxzH{|Ff@P?TfS7N3`Ig*EXr&Lkdw1szDGVAjpW6Nc+L`wnCK`W@Is~q z31J(@PJq(q=4_DadpaA%Q{b*tdE@#;X|6Zl*oxrbAeod(d1-Y5wrr^tY0q1cnzB?r z)Bo)|v*G2bedKN^!9hB$#!;=Z-q~~{ke9a$v%@0=lt9^8FDVs9U`C)>Jf9Of9gE`U z38+K*aJ;o`i}Zk>*|~eV51wjVs|9-tMfUgK-GQX!BmtctH5ZwyS4l-wXXE;H2%R|% z(}Ds7FghYku9Tlda$nov^qq>Bj0Pd$_F!T&n$0G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TVa&D$ zUmeI|$15}m2um$SopCiVkdAk^M|f=aw+h`K46+~S;YF8I2y64Jn4M@A0?Ik%U++|) z$NZ2e!Ck`cgS~jUvk$Sx3IxO#;E3~(P!=cGol0YjlZh7GC9bt=?R(wE=Ljyhz$Ev> z`Vfgn+`o`+3r;5~?H;IsJvRbdguX8f4?%PSj_6Y5qg2#nQ@i(^9QcnwZDG2}o002ov JPDHLkV1fbqJ~03Q literal 0 HcmV?d00001 diff --git a/Cursors/16491828335798648832.bmp b/Cursors/16491828335798648832.bmp new file mode 100644 index 0000000000000000000000000000000000000000..aefd6711c4ca38571b7aea7db28f0ae6a5c68f14 GIT binary patch literal 1290 zcmV+l1@-!gP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D1fNMnK~z{r?U(s0 z^j{RmF^pLxghV7uWJy9%Qj!v7Dg3IGe*h85E^DG>%bGP(NU|?~*?H!5#+_&8`^*gL z@%`yJb^C1hp7;B_&pG$bgt$z;Gi;GIu7B0!`T1F%o}T35;zCYOPv!9NP}bMiWqy8M z1_lN^;E~qIzYdPc>+7qWot??{_O@p%E-uR8;Go!S8gW2yhs`eG;o%;VjIgjUv3-NA z64=|@^8p_k8uEY#auyL0;Q`&**^$S`N4=VNe2;QC{jT*kO~KL8k?im9%j)W?FL>mi z;M9R7%py*wQw|Oe6nJH2MV6M9lmLVG+1c41BJP#`O>S>*>>ky}jv`;+mbEmF4ASEjmMh z+@s3K$cU0KQ5O^xsNd4kQi+a^7Kh#Lp8&(|>Sy<(kLkChq$CA~2pbgyh!FV=2?#)n z&8(}dOYAPNxVSi}t*w>f;$pW7uAtm*ea$a83oYPe%XlT%96eC(x zplcvdR#v7pz<2zAYDnMM*r?HOZfJ+8uZ@|bk(gVmn z`EO}y(eHsez{i+mu~;-(`kkVKKxb#Cq@|@PC_pteHIkW`DKRlI8f|iNvZ?_n((|pY ztxapd@q70SZk%f5mcB*yj*bp>2q+G#s;V?1)Tytp*Uq3Q0ZdO%*DLZvggGYfC_(JEh;u-hhujdN zP9R{~^h4dR8Q@J#O$xvd3!;RGDL(Q~-ia2HR;$&McLqc$O4^ith0X25_1DZO00CqM zn5Zd00EikQ=9DuzHwr--6=-Yk(^b07*qoM6N<$f{iX{ A1poj5 literal 0 HcmV?d00001