1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-13 16:44:50 +02:00

Use resources URL instead of main bundle

Because it’s nicer.
This commit is contained in:
cochrane
2016-11-19 07:38:32 +01:00
parent d764b3c8fa
commit 8769bdb3be

View File

@@ -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();