MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / xorcode

Function xorcode

netcon/mtclient/mtpilottracker.cpp:630–640  ·  view source on GitHub ↗

This code will modify 4 bytes at a time, so make sure to pad it!!!

Source from the content-addressed store, hash-verified

628}
629// This code will modify 4 bytes at a time, so make sure to pad it!!!
630void xorcode(void *data, uint32_t len, uint32_t hash) {
631 return;
632 uint32_t i = 0;
633 uint32_t *src = (uint32_t *)&data;
634
635 while (i < len) {
636 *src = *src ^ hash;
637 src++;
638 i += sizeof(uint32_t);
639 }
640}
641
642void VersionIdle() {
643 PollPTrackNet();

Callers 1

HandlePilotDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected