robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Lewis Russellbuild: move all generator scripts to `src/gen/`0f24b0826a

master
305 B17 linesraw
1local function dump_bin_array(output, name, data)
2  output:write([[
3  static const uint8_t ]] .. name .. [[[] = {
4]])
5
6  for i = 1, #data do
7    output:write(string.byte(data, i) .. ', ')
8    if i % 10 == 0 then
9      output:write('\n  ')
10    end
11  end
12  output:write([[
13};
14]])
15end
16
17return dump_bin_array