shithub: choc

Download patch

ref: b9f3fca5126db4f93fabbdfa4ee299f35a78c25e
parent: 3175bb59f356145575de1fb1262fc1497cc17483
author: Simon Howard <[email protected]>
date: Sun Dec 23 20:12:54 EST 2018

osx: Use PACKAGE_TARNAME for autoload path.

Instead of hard-coding.

--- 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 @@
 
     NSString *base = [array objectAtIndex:0];
     return [NSString pathWithComponents:
-        [NSArray arrayWithObjects: base, @"chocolate-doom", @"autoload",
+        [NSArray arrayWithObjects: base, @PACKAGE_TARNAME, @"autoload",
                                    IWADFilenames[selectedIWAD], nil]];
 }