Skip to content

Commit 2507b22

Browse files
committed
Keep config data after art update
1 parent 18803bd commit 2507b22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scenes/loadingScene.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ function VersionCheck()
5252
--delete existing files
5353
local img_path = system.pathForFile("", system.DocumentsDirectory)
5454
for file in lfs.dir(img_path) do
55-
os.remove(system.pathForFile(file, system.DocumentsDirectory))
55+
if EndsWith(file, "png") then
56+
os.remove(system.pathForFile(file, system.DocumentsDirectory))
57+
end
5658
end
5759
GetAllCreatureImages()
5860
dataVersions.artDataVersion = version

0 commit comments

Comments
 (0)