diff --git a/sonic-radiance.love/game/modules/utils/init.lua b/sonic-radiance.love/game/modules/utils/init.lua index 4bf374f..3948045 100644 --- a/sonic-radiance.love/game/modules/utils/init.lua +++ b/sonic-radiance.love/game/modules/utils/init.lua @@ -2,7 +2,12 @@ local gameutils = {} function gameutils.getMapPath(maptype, mapname) local dir = gameutils.getMapDirectory(maptype, mapname) - local path = dir .. "map.lua" + local path = "" + if maptype == "sti" then + path = dir .. "map.lua" + else + path = "datas.gamedata.maps." .. maptype .. "." .. mapname + end core.debug:print("game/utils", "path is " .. path) return path end