summaryrefslogtreecommitdiff
path: root/src/lua-script/cify.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-01-04 22:28:43 -0600
committersanine <sanine.not@pm.me>2022-01-04 22:28:43 -0600
commit72e13dff9ff4fde91b84054167da91a5d27cb952 (patch)
treefca4ac07fe5b8e03ab6352fb999be1459f115db4 /src/lua-script/cify.lua
parent43347c36ec9b1f5e988cf6c89edd4d901061a303 (diff)
add working rss:
Diffstat (limited to 'src/lua-script/cify.lua')
-rwxr-xr-xsrc/lua-script/cify.lua2
1 files changed, 2 insertions, 0 deletions
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