commit b9f3fca5126db4f93fabbdfa4ee299f35a78c25e
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Mon Dec 24 01:12:54 2018 -0500
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Mon Dec 24 01:12:54 2018 -0500
osx: Use PACKAGE_TARNAME for autoload path.
Instead of hard-coding.
---
pkg/osx/IWADController.m | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/pkg/osx/IWADController.m b/pkg/osx/IWADController.m
index a22bd8ab..2b11eae6 100644
--- a/pkg/osx/IWADController.m
+++ b/pkg/osx/IWADController.m
@@ -15,6 +15,8 @@
#include <stdlib.h>
#include <string.h>
#include <AppKit/AppKit.h>
+
+#include "config.h"
#include "IWADController.h"
typedef enum
@@ -367,7 +369,7 @@ static const char *NameForIWAD(IWAD iwad)
NSString *base = [array objectAtIndex:0];
return [NSString pathWithComponents:
- [NSArray arrayWithObjects: base, @"chocolate-doom", @"autoload",
+ [NSArray arrayWithObjects: base, @PACKAGE_TARNAME, @"autoload",
IWADFilenames[selectedIWAD], nil]];
}