Browse Source

Fix write dir missing a trailing slash (#947)

diath 1 year ago
parent
commit
cb508c6b9f
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      init.lua

+ 2
- 2
init.lua View File

@@ -22,7 +22,7 @@ end
22 22
 g_resources.addSearchPath(g_resources.getWorkDir() .. "mods", true)
23 23
 
24 24
 -- setup directory for saving configurations
25
-g_resources.setupUserWriteDir(g_app.getCompactName())
25
+g_resources.setupUserWriteDir(('%s/'):format(g_app.getCompactName()))
26 26
 
27 27
 -- search all packages
28 28
 g_resources.searchAndAddPackages('/', '.otpkg', true)
@@ -52,4 +52,4 @@ local script = '/' .. g_app.getCompactName() .. 'rc.lua'
52 52
 
53 53
 if g_resources.fileExists(script) then
54 54
   dofile(script)
55
-end
55
+end

Loading…
Cancel
Save