fix(datapack): handle . in names
This commit is contained in:
parent
1310d9f5e8
commit
7629b60e45
1 changed files with 5 additions and 1 deletions
|
@ -36,7 +36,11 @@ function DataPack:new(foldername, categories, areFiles, subfiles)
|
|||
end
|
||||
|
||||
function DataPack:getBaseDirectory(lua)
|
||||
return utils.datas.concatDataFolder(self.foldername, lua)
|
||||
local foldername = self.foldername
|
||||
if (not lua) then
|
||||
foldername = string.gsub(foldername, "%.", "/")
|
||||
end
|
||||
return utils.datas.concatDataFolder(foldername, lua)
|
||||
end
|
||||
|
||||
function DataPack:getCategoryDirectory(category, lua)
|
||||
|
|
Loading…
Reference in a new issue