From cb508c6b9fbc554fe4ecc030c6f4613c5af89fba Mon Sep 17 00:00:00 2001
From: diath <diath@zodiaclabs.org>
Date: Wed, 28 Feb 2018 21:44:17 +0100
Subject: [PATCH] Fix write dir missing a trailing slash (#947)

---
 init.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/init.lua b/init.lua
index 64ddbf10..7386be0c 100644
--- a/init.lua
+++ b/init.lua
@@ -22,7 +22,7 @@ end
 g_resources.addSearchPath(g_resources.getWorkDir() .. "mods", true)
 
 -- setup directory for saving configurations
-g_resources.setupUserWriteDir(g_app.getCompactName())
+g_resources.setupUserWriteDir(('%s/'):format(g_app.getCompactName()))
 
 -- search all packages
 g_resources.searchAndAddPackages('/', '.otpkg', true)
@@ -52,4 +52,4 @@ local script = '/' .. g_app.getCompactName() .. 'rc.lua'
 
 if g_resources.fileExists(script) then
   dofile(script)
-end
\ No newline at end of file
+end