Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Rcv connectionIndex check for Mac x86 and x64 - Someone test this please
Browse files Browse the repository at this point in the history
Signed-off-by: Sovak <Sovak007@gmail.com>
  • Loading branch information
Sovak committed Apr 3, 2014
1 parent 88818ab commit 7152565
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 5xx Patcher/Client Patcher/Patches/Mac.cs
Expand Up @@ -25,6 +25,7 @@ public static class x86
public static byte[] Email = { 0xEB };
public static byte[] User = { 0x00 };
public static byte[] RaF = { 0x31, 0xC0, 0xEB, 0x72, 0x90 };
public static byte[] Rcv = { 0xFF, 0x0F, 0x84 };
}

public static class x64
Expand All @@ -33,6 +34,7 @@ public static class x64
public static byte[] Email = { 0xEB };
public static byte[] User = { 0x00 };
public static byte[] RaF = { 0x31, 0xC0, 0xE9, 0xE5, 0x02, 0x00, 0x00 };
public static byte[] Rcv = { 0xFF, 0x0F, 0x84 };
}
}
}
2 changes: 2 additions & 0 deletions 5xx Patcher/Client Patcher/Patterns/Mac.cs
Expand Up @@ -25,6 +25,7 @@ public static class x86
public static byte[] Email = { 0x74, 0x05, 0xBE, 0x01, 0x00, 0x00, 0x00, 0xA1 };
public static byte[] User = { 0x40, 0x00, 0x00, 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x85, 0xC0, 0x0F, 0x84, 0x00, 0x00, 0x00, 0x00, 0xC7, 0x05, 0x00, 0x00, 0x00, 0x00, 0xFF };
public static byte[] RaF = { 0xA1, 0x00, 0x00, 0x00, 0x00, 0x8B, 0x08, 0x8B, 0x01, 0x89, 0x4C, 0x24, 0x04, 0x8D, 0x4D, 0xE0, 0x89, 0x0C, 0x24, 0xC7 };
public static byte[] Rcv = { 0x02, 0x0F, 0x85, 0x00, 0x00, 0x00, 0x00, 0x8B, 0x87, 0x64, 0x45, 0x00, 0x00, 0x8B, 0x4D, 0x18, 0x89, 0x4C, 0x24, 0x14, 0x89, 0x5C, 0x24, 0x10, 0x89, 0x7C, 0x24, 0x0C, 0x89, 0x54, 0x24, 0x08, 0x89, 0x04, 0x24 };
}

public static class x64
Expand All @@ -33,6 +34,7 @@ public static class x64
public static byte[] Email = { 0x74, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x74, 0x00, 0x48, 0x00, 0x00, 0xFF, 0x90 };
public static byte[] User = { 0x40, 0x00, 0x00, 0x00, 0xE8, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x0F, 0x84, 0x00, 0x00, 0x00, 0x00, 0xC7, 0x05, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF };
public static byte[] RaF = { 0x48, 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x8D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x48, 0x00, 0x00, 0x48, 0x00, 0x00, 0x31 };
public static byte[] Rcv = { 0x02, 0x0F, 0x85, 0x00, 0x00, 0x00, 0x00, 0x49, 0x8B, 0xB9, 0x80, 0x85, 0x00, 0x00, 0xBE, 0x17, 0x00, 0x00, 0x00, 0x48, 0x89, 0xDA, 0x4C, 0x89, 0xC9, 0x4D, 0x89, 0xE0, 0x45, 0x89, 0xF9 };
}
}
}
2 changes: 2 additions & 0 deletions 5xx Patcher/Client Patcher/Program.cs
Expand Up @@ -62,6 +62,7 @@ static void Main(string[] args)
patcher.Patch(Patches.Mac.x86.Email, Patterns.Mac.x86.Email);
patcher.Patch(Patches.Mac.x86.User, Patterns.Mac.x86.User);
patcher.Patch(Patches.Mac.x86.RaF, Patterns.Mac.x86.RaF);
patcher.Patch(Patches.Mac.x86.Rcv, Patterns.Mac.x86.Rcv);

patcher.Binary = patcher.Binary + " Patched";

Expand All @@ -72,6 +73,7 @@ static void Main(string[] args)
patcher.Patch(Patches.Mac.x64.Email, Patterns.Mac.x64.Email);
patcher.Patch(Patches.Mac.x64.User, Patterns.Mac.x64.User);
patcher.Patch(Patches.Mac.x64.RaF, Patterns.Mac.x64.RaF);
patcher.Patch(Patches.Mac.x64.Rcv, Patterns.Mac.x64.Rcv);

patcher.Binary = patcher.Binary + " Patched";

Expand Down

3 comments on commit 7152565

@Palabola
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test in progress!

@Sovak
Copy link
Contributor Author

@Sovak Sovak commented on 7152565 Apr 3, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to test it in combat, attack a mob and if the attack animation is over after the end of the combat its ok. If the animation is still there as if you were attacking its incorrect.

@Palabola
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had some problem with the Patching, copy Mac->Win->Mac and Application is a bad idea :

Mac 32&64bit client(clean): http://tinyurl.com/od3o4ea

Please sign in to comment.