Decompile fn_18399 (StoreLittleEndian32)

Batch #6271 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_18399 StoreLittleEndian32: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, alisonrag, willerthal
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-30 21:27:36 +00:00
commit d19d5d6bb0

View file

@ -574,6 +574,15 @@ unsigned int* CryptonSetKey(const unsigned int* input, unsigned int keyBits) {
return g_cryptonDecryptKeys;
}
// OFFSET: 0x00B0BDD0
// FUNCTION: fn_18399
void StoreLittleEndian32(unsigned int value, unsigned char* bytes) {
bytes[0] = static_cast<unsigned char>(value);
bytes[1] = static_cast<unsigned char>(value >> 8);
bytes[2] = static_cast<unsigned char>(value >> 16);
bytes[3] = static_cast<unsigned char>(value >> 24);
}
// OFFSET: 0x00B0C3D0
// FUNCTION: fn_18400
unsigned int LoadLittleEndian32(const unsigned char* bytes) {