Skip to content

Commit

Permalink
Fix: Cursors: Repair icon was not matched while using WOTLK classic
Browse files Browse the repository at this point in the history
  • Loading branch information
Xian55 committed Dec 10, 2022
1 parent 72a488c commit 7f03b9d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Core/Cursor/CursorClassifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
};
Expand Down Expand Up @@ -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);
Expand Down
Binary file added Cursors/14185844589096599552.bmp
Binary file not shown.
Binary file added Cursors/16208728271425052189.bmp
Binary file not shown.
Binary file added Cursors/16491828335798648832.bmp
Binary file not shown.

0 comments on commit 7f03b9d

Please sign in to comment.