Left4Fix icon indicating copy to clipboard operation
Left4Fix copied to clipboard

Move TeamSize config to ConVar

Open spumer opened this issue 4 years ago • 0 comments

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

spumer avatar Aug 15 '21 11:08 spumer