feat(output): add Zig code generation backend

- add "zig" as supported file type in output dispatcher
- implement Zig writers for buttons/interfaces/offsets/schemas
- add Zig identifier escaping for keywords and invalid names
- handle negative enum values safely in Zig schema output
- include zig in default --file-types and update README
This commit is contained in:
hagz0r
2026-03-08 22:35:26 +01:00
parent f54ca754e2
commit 56ca942d27
7 changed files with 301 additions and 6 deletions

View File

@@ -36,7 +36,7 @@ Linux or as an administrator on Windows.
- `-c, --connector <connector>`: The name of the memflow connector to use.
- `-a, --connector-args <connector-args>`: Additional arguments to pass to the memflow connector.
- `-f, --file-types <file-types>`: The types of files to generate. Default: `cs`, `hpp`, `json`, `rs`.
- `-f, --file-types <file-types>`: The types of files to generate. Default: `cs`, `hpp`, `json`, `rs`, `zig`.
- `-i, --indent-size <indent-size>`: The number of spaces to use per indentation level. Default: `4`.
- `-o, --output <output>`: The output directory to write the generated files to. Default: `output`.
- `-p, --process-name <process-name>`: The name of the game process. Default: `cs2.exe`.