Skip to content

Commit 8769bdb

Browse files
committed
Use resources URL instead of main bundle
Because it’s nicer.
1 parent d764b3c commit 8769bdb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/platform/osx/main.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,10 +318,10 @@ int main() {
318318

319319
// get path to game content
320320
NSBundle *bundle = [NSBundle mainBundle];
321-
NSURL *bundleURL = bundle.bundleURL;
321+
NSURL *resourceURL = bundle.resourceURL;
322322
contentPath = new char[1024];
323-
[bundleURL getFileSystemRepresentation:contentPath maxLength:1024];
324-
strcat(contentPath, "/Contents/Resources/");
323+
[resourceURL getFileSystemRepresentation:contentPath maxLength:1024];
324+
strcat(contentPath, "/");
325325

326326
soundInit();
327327
Game::init();

0 commit comments

Comments
 (0)