Escape "." corrently in respack.lua
Using \ works in minilua, but not real lua. Closes #1898.
This commit is contained in:
parent
28eb475fc2
commit
ad0f702a55
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ out_cpp:write('#include "libresrc.h"\n')
|
||||||
for line in manifest:lines() do
|
for line in manifest:lines() do
|
||||||
if line:find('.') then
|
if line:find('.') then
|
||||||
local file = try_open(path..line, 'rb')
|
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 .. "[] = {")
|
out_cpp:write("const unsigned char " .. id .. "[] = {")
|
||||||
|
|
||||||
local len = 0
|
local len = 0
|
||||||
|
|
Loading…
Reference in a new issue