[iOS] Made the resources path the default working directory
This commit is contained in:
parent
3872b27569
commit
8f459cd1af
@ -80,6 +80,9 @@ namespace
|
|||||||
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
|
[[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
|
||||||
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object: nil];
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(deviceOrientationDidChange:) name:UIDeviceOrientationDidChangeNotification object: nil];
|
||||||
|
|
||||||
|
// Change the working directory to the resources directory
|
||||||
|
[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle mainBundle] resourcePath]];
|
||||||
|
|
||||||
// Schedule an indirect call to the user main, so that this call (and the whole
|
// Schedule an indirect call to the user main, so that this call (and the whole
|
||||||
// init sequence) can end, and the default splashscreen can be destroyed
|
// init sequence) can end, and the default splashscreen can be destroyed
|
||||||
[self performSelector:@selector(runUserMain) withObject:nil afterDelay:0.0];
|
[self performSelector:@selector(runUserMain) withObject:nil afterDelay:0.0];
|
||||||
|
Loading…
Reference in New Issue
Block a user