mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-15 09:34:18 +02:00
Use resources URL instead of main bundle
Because it’s nicer.
This commit is contained in:
@@ -318,10 +318,10 @@ int main() {
|
|||||||
|
|
||||||
// get path to game content
|
// get path to game content
|
||||||
NSBundle *bundle = [NSBundle mainBundle];
|
NSBundle *bundle = [NSBundle mainBundle];
|
||||||
NSURL *bundleURL = bundle.bundleURL;
|
NSURL *resourceURL = bundle.resourceURL;
|
||||||
contentPath = new char[1024];
|
contentPath = new char[1024];
|
||||||
[bundleURL getFileSystemRepresentation:contentPath maxLength:1024];
|
[resourceURL getFileSystemRepresentation:contentPath maxLength:1024];
|
||||||
strcat(contentPath, "/Contents/Resources/");
|
strcat(contentPath, "/");
|
||||||
|
|
||||||
soundInit();
|
soundInit();
|
||||||
Game::init();
|
Game::init();
|
||||||
|
Reference in New Issue
Block a user