mirror of
https://github.com/libretro/retroluxury.git
synced 2024-11-27 01:40:47 +00:00
better conversion of paths to c identifiers
This commit is contained in:
parent
6b028f2b8a
commit
5a688f75e6
@ -44,7 +44,7 @@ Usage: luai rltile.lua <image>
|
||||
local file, err = io.open( dir .. path.separator .. name .. '.h', 'w' )
|
||||
if not file then error( err ) end
|
||||
|
||||
local array = string.gsub( name .. ext, '[%.\\/:]', '_' )
|
||||
local array = string.gsub( name .. ext, '[^a-zA-Z0-9_]', '_' )
|
||||
|
||||
file:write( 'const uint16_t ', array, '[] = {\n' )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user