Maelstrom: Fixed so macres works again, but with the physfs directory restrictions.

https://github.com/libsdl-org/Maelstrom/commit/7703ec9a39c757a3c4bcefac4e237b2f9353111f

From 7703ec9a39c757a3c4bcefac4e237b2f9353111f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 24 Nov 2011 08:46:06 -0500
Subject: [PATCH] Fixed so macres works again, but with the physfs directory
 restrictions.

---
 maclib/macres.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/maclib/macres.cpp b/maclib/macres.cpp
index af1526f9..7abe3853 100644
--- a/maclib/macres.cpp
+++ b/maclib/macres.cpp
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 
 #include "SDL.h"
+#include "physfs.h"
 #include "Mac_Resource.h"
 
 int main(int argc, char *argv[])
@@ -38,6 +39,12 @@ int main(int argc, char *argv[])
 		exit(1);
 	}
 
+	if (!PHYSFS_init(argv[0])) {
+		fprintf(stderr, "Couldn't initialize PHYSFS: %s\n", PHYSFS_getLastError());
+		exit(2);
+	}
+	PHYSFS_setSaneConfig("galaxygameworks", "macres", NULL, 0, 0);
+
 	res = new Mac_Resource(argv[1]);
 	if ( res->Error() ) {
 		fprintf(stderr, "Mac_Resource: %s\n", res->Error());