From 8769bdb3beb5cb4b0a6bdb658914879130f8f15b Mon Sep 17 00:00:00 2001 From: cochrane Date: Sat, 19 Nov 2016 07:38:32 +0100 Subject: [PATCH] Use resources URL instead of main bundle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because it’s nicer. --- src/platform/osx/main.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/osx/main.mm b/src/platform/osx/main.mm index ed9f9ea..1cedbd8 100644 --- a/src/platform/osx/main.mm +++ b/src/platform/osx/main.mm @@ -318,10 +318,10 @@ int main() { // get path to game content NSBundle *bundle = [NSBundle mainBundle]; - NSURL *bundleURL = bundle.bundleURL; + NSURL *resourceURL = bundle.resourceURL; contentPath = new char[1024]; - [bundleURL getFileSystemRepresentation:contentPath maxLength:1024]; - strcat(contentPath, "/Contents/Resources/"); + [resourceURL getFileSystemRepresentation:contentPath maxLength:1024]; + strcat(contentPath, "/"); soundInit(); Game::init();