From b9f3fca5126db4f93fabbdfa4ee299f35a78c25e Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 24 Dec 2018 01:12:54 -0500 Subject: [PATCH] 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 #include #include + +#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]]; }