This commit is contained in:
2026-04-01 23:25:51 +02:00
commit 483576b78f
27 changed files with 4310 additions and 0 deletions

9
file_to_header.py Normal file
View File

@@ -0,0 +1,9 @@
import sys
import pathlib
fname = pathlib.Path(sys.argv[1]).stem
data = open(sys.argv[1], 'rb').read()
print(f'inline uint8_t {fname}_data[{hex(len(data))}] = {{{",".join(map(hex, data))}}};')
print(f'\nconstexpr auto {fname}_data_size = {hex(len(data))};')