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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user