Kelsidavis-WoWee/src
Kelsi 63a0ea224b Implement Warden Phase 4: Executable Loader (partial)
Added module memory allocation and skip/copy parsing:

Executable Format Parser:
- Read 4-byte little-endian final code size
- Parse alternating skip/copy sections (2-byte length + data)
- Skip sections: advance offset without copying
- Copy sections: memcpy x86 code to allocated memory
- Boundary validation and sanity checks (max 5MB code)

Memory Allocation:
- Linux: mmap() with PROT_READ|WRITE|EXEC permissions
- Windows: VirtualAlloc() with PAGE_EXECUTE_READWRITE
- Proper cleanup in unload() (munmap/VirtualFree)
- Zero-initialize allocated memory

Address Relocations (STUB):
- Framework in place for delta-encoded offset parsing
- Needs real Warden module data to implement correctly
- Currently returns true to continue loading pipeline

Load Pipeline Status:
 Step 1-5: MD5, RC4, RSA, zlib, exe parsing
⚠️  Step 6: Relocations (stub - needs real module)
 Step 7-8: API binding, initialization

Progress: 4/7 phases underway (~1.5 months remaining)
Next: Phase 5 (API Binding) - kernel32.dll/user32.dll imports
2026-02-12 02:49:58 -08:00
..
audio Fix taxi state sync and transport authority; reduce runtime log overhead; restore first-person self-hide 2026-02-11 22:27:02 -08:00
auth Enhanced Warden implementation with comprehensive documentation 2026-02-12 02:22:04 -08:00
core Harden packet framing/logging and checkpoint current workspace state 2026-02-12 02:27:59 -08:00
game Implement Warden Phase 4: Executable Loader (partial) 2026-02-12 02:49:58 -08:00
network Harden packet framing/logging and checkpoint current workspace state 2026-02-12 02:27:59 -08:00
pipeline Harden packet framing/logging and checkpoint current workspace state 2026-02-12 02:27:59 -08:00
rendering Harden packet framing/logging and checkpoint current workspace state 2026-02-12 02:27:59 -08:00
ui Stabilize taxi/state sync and creature spawn handling 2026-02-11 21:14:35 -08:00
main.cpp Add ambient sound system and eliminate log spam 2026-02-09 14:50:14 -08:00