osx: Use PACKAGE_TARNAME for autoload path.

Instead of hard-coding.
This commit is contained in:
Simon Howard 2018-12-24 01:12:54 -05:00
parent 3175bb59f3
commit b9f3fca512

View file

@ -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]];
}