Escape "." corrently in respack.lua

Using \ works in minilua, but not real lua.

Closes #1898.
This commit is contained in:
Thomas Goyne 2016-01-11 20:11:45 -08:00
parent 28eb475fc2
commit ad0f702a55
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ out_cpp:write('#include "libresrc.h"\n')
for line in manifest:lines() do
if line:find('.') then
local file = try_open(path..line, 'rb')
local id = line:gsub('^.*/', ''):gsub('\.[a-z]+$', '')
local id = line:gsub('^.*/', ''):gsub('%.[a-z]+$', '')
out_cpp:write("const unsigned char " .. id .. "[] = {")
local len = 0