From 72e13dff9ff4fde91b84054167da91a5d27cb952 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 4 Jan 2022 22:28:43 -0600 Subject: add working rss: --- src/lua-script/cify.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lua-script/cify.lua') diff --git a/src/lua-script/cify.lua b/src/lua-script/cify.lua index a2fbcbe..1c6a16b 100755 --- a/src/lua-script/cify.lua +++ b/src/lua-script/cify.lua @@ -8,6 +8,8 @@ output_file = io.open('script.h', 'w') output_file:write('const char *argent_script =\n') for line in io.lines('script.lua') do + line = string.gsub(line, '\\', '\\\\') + line = string.gsub(line, '"', '\\"') output_file:write(' "'..line..'\\n"\n') end -- cgit v1.2.1