https://github.com/libsdl-org/Maelstrom/commit/cfd658ca33a47c71706df6ef5b7f4f4190d4932e
From cfd658ca33a47c71706df6ef5b7f4f4190d4932e Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 24 Nov 2011 09:36:07 -0500
Subject: [PATCH] Updated snd2wav with physfs support
---
maclib/snd2wav.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/maclib/snd2wav.cpp b/maclib/snd2wav.cpp
index 0c554e9d..209074de 100644
--- a/maclib/snd2wav.cpp
+++ b/maclib/snd2wav.cpp
@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <string.h>
+#include "physfs.h"
#include "Mac_Wave.h"
static Wave wave;
@@ -36,6 +37,12 @@ int main(int argc, char *argv[])
Uint16 *ids, rate;
int i;
+ if (!PHYSFS_init(argv[0])) {
+ fprintf(stderr, "Couldn't initialize PHYSFS: %s\n", PHYSFS_getLastError());
+ exit(2);
+ }
+ PHYSFS_setSaneConfig("galaxygameworks", "macres", NULL, 0, 0);
+
rate = 0;
if ( (argc >= 3) && (strcmp(argv[1], "-rate") == 0) ) {
int i;