[DiscordArchive] Could the magic numbers be the points enum?
[DiscordArchive] Could the magic numbers be the points enum?
Archived author: Kaev • Posted: 2025-07-01T19:17:47.368000+00:00
Original source
Could the magic numbers be the points enum?
Archived author: Kaev • Posted: 2025-07-01T19:17:59.640000+00:00
Original source
name fits, entry count fits, logic fits
Archived author: Kaev • Posted: 2025-07-01T19:18:31.247000+00:00
Original source
no idea if you can define that in ida aswell
Archived author: Saty • Posted: 2025-07-01T19:27:01.479000+00:00
Original source
Yeah it is, I could make it a enum. Don't really need to tho.
But if I release the IDB might be more readable... hmmm
Archived author: Kaev • Posted: 2025-07-01T19:27:36.082000+00:00
Original source
if it doesn't take some time, i don't see why not
Archived author: Saty • Posted: 2025-07-01T19:28:14.542000+00:00
Original source
The only problem I have is, that I dont know how to seperate the relativePoint into 2 values.
There is currently the point enum and some flags encoded in it... no idea why
Archived author: Saty • Posted: 2025-07-01T19:30:11.647000+00:00
Original source
v3 = (this->relativePoint >> 8) & 2;
Stuff like that. It skips past the first byte and reads some extra data.
Idk if you can tell IDA that somehow... probably can looking at robinsch's code, but I am not there yet
Archived author: Kaev • Posted: 2025-07-01T19:38:14.287000+00:00
Original source
the enum fits in the last byte so in the rest there maybe could be some kind of modifiers
Archived author: Kaev • Posted: 2025-07-01T19:38:49.275000+00:00
Original source
maybe if its related to smth and that's a check for it or it is mirrored for right to left stuff (e.g. arabian texts are right to left iirc) - such kind of modifiers (if that stuff exists in the client, not sure)