summaryrefslogtreecommitdiff
path: root/src/lua-script/cify.lua
diff options
context:
space:
mode:
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