https://github.com/libsdl-org/Maelstrom/commit/dbc3494a0c0fdc6101f13ae2089388f912ef473c
From dbc3494a0c0fdc6101f13ae2089388f912ef473c Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 31 Oct 2011 17:01:49 -0400
Subject: [PATCH] Fix for setting the write directory
---
main.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.cpp b/main.cpp
index ac7b1df6..962a7d1f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -205,9 +205,9 @@ InitFilesystem(const char *argv0)
// Set up the write directory for this platform
const char *home = PHYSFS_getUserDir();
#if defined(__MACOSX__) || defined(__IPHONEOS__)
- SDL_snprintf(path, SDL_arraysize(path), "%sLibrary/Application Support/%s", home, MAELSTROM_PREFS);
+ SDL_snprintf(path, SDL_arraysize(path), "%sLibrary/Application Support/%s/", home, MAELSTROM_PREFS);
#else
- SDL_snprintf(path, SDL_arraysize(path), "%s.%s", home, MAELSTROM_PREFS);
+ SDL_snprintf(path, SDL_arraysize(path), "%s.%s/", home, MAELSTROM_PREFS);
#endif
if (!PHYSFS_setWriteDir(path)) {
if (!PHYSFS_setWriteDir(home) ||