15 lines
531 B
Diff
15 lines
531 B
Diff
http://devel.aegisub.org/ticket/1898
|
|
|
|
diff --git a/tools/respack.lua b/tools/respack.lua
|
|
index 85955d1..1281ac2 100755
|
|
--- a/tools/respack.lua
|
|
+++ b/tools/respack.lua
|
|
@@ -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
|