From 7629b60e453e10ec369e96ea7d31d2857fc34386 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 15 May 2021 21:40:12 +0200 Subject: [PATCH] fix(datapack): handle . in names --- sonic-radiance.love/birb/classes/datapack.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sonic-radiance.love/birb/classes/datapack.lua b/sonic-radiance.love/birb/classes/datapack.lua index 06abb07..bfaf29b 100644 --- a/sonic-radiance.love/birb/classes/datapack.lua +++ b/sonic-radiance.love/birb/classes/datapack.lua @@ -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)