#if defined(__aarch64__) //To compile this code for arm64 lib only.
PATCH("0x600124", "00 00 80 D2 C0 03 5F D6");
I'm using findMethod (by name) instead of offsethow do I fix this too?
Okay, I'll try it. Thank youI'm using findMethod (by name) instead of offset
Hello. I tried to repeat this, but my hack stopped working even the first time I started it, I believe that the translator did not accurately translate your message and I simply did the wrong things. Could you show an example of your code? You provided this PATCH("0x600124", "00 00 80 D2 C0 03 5F D6"); in a similar form PATCH("SpendGems", "00 00 80 D2 C0 03 5F D6"); ?I'm using findMethod (by name) instead of offset
Hello. I tried to repeat this, but my hack stopped working even the first time I started it, I believe that the translator did not accurately translate your message and I simply did the wrong things. Could you show an example of your code? You provided this PATCH("0x600124", "00 00 80 D2 C0 03 5F D6"); in a similar form PATCH("SpendGems", "00 00 80 D2 C0 03 5F D6"); ?
Thank you
PATCH_ADDR((uint64_t)findMethod("","RoomClient","CanRespawn"), "20 00 80 D2 C0 03 5F D6");
Well, I added this code to includes/Macros.h (it seemed like a good place for the code), but unfortunately my project didn't build. Obviously you made a lot of changes to the lgl template, but my programming skills are not very good, so I’m unlikely to be able to repeat it (maybe only if I see your modified mod menu template, but it’s a big impudence to ask it from you). I came to the conclusion that I will remove the display of the menu icon and will use the switch button, which will be activated by default, so my hacks continue to work on further restarts of the game). In any case, thank you for trying to help.PATCH_ADDR((uint64_t)findMethod("","RoomClient","CanRespawn"), "20 00 80 D2 C0 03 5F D6");
Well, I added this code to includes/Macros.h (it seemed like a good place for the code), but unfortunately my project didn't build. Obviously you made a lot of changes to the lgl template, but my programming skills are not very good, so I’m unlikely to be able to repeat it (maybe only if I see your modified mod menu template, but it’s a big impudence to ask it from you). I came to the conclusion that I will remove the display of the menu icon and will use the switch button, which will be activated by default, so my hacks continue to work on further restarts of the game). In any case, thank you for trying to help.
I guessed that this needs to be added to main cpp, but in your post you talked about some file in includes. So I have to create a file "file.h" in the includes folder, then in main.cpp I have to write this #include <file.h> and put PATCH_ADDR((uint64_t)findMethod("AddGems", "AddGold"), "E0 47 88 52 E0 01 A0 72 C0 03 5F D6"); in hackthread? But what code should be in file.h?No this code goes in main.cpp under hackthread
What code did you use to be able to use the PATCH ADDR, can you provide it?Example:
C++:PATCH_ADDR((uint64_t)findMethod("","RoomClient","CanRespawn"), "20 00 80 D2 C0 03 5F D6");
For this to work you need to add code to a file in your includes folder.
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies