Left4Fix
Left4Fix copied to clipboard
Move TeamSize config to ConVar
Huge updates require to fix extension. But all we do is replace one code block with another one.
I want to make possible update only gamedata. To do that we need implement few things:
- Get search pattern from gamedata (done!)
- Get patch bytes from gamedata (partial done)
- Get original code bytes size from gamedata (cause original block can be shorter or bigger than our patch)
- Introduce placeholder for TEAM_SIZE into patch, i guess it should be \x2B
After that we just need to use global var to store TEAM_SIZE and re-patch code each time when ConVar changed