Fix osx launcher crash when there is a space in the launcher path. Launching the game still doesn't work in this case.
This commit is contained in:
@@ -209,8 +209,7 @@ static JSBridge *SharedInstance;
|
||||
}
|
||||
|
||||
// Disallow traversing up the directory tree
|
||||
id path = [[[mod baseURL] absoluteString]
|
||||
stringByAppendingPathComponent:[aFile stringByReplacingOccurrencesOfString:@"../"
|
||||
id path = [[mod path] stringByAppendingPathComponent:[aFile stringByReplacingOccurrencesOfString:@"../"
|
||||
withString:@""]];
|
||||
|
||||
return [[NSFileManager defaultManager] fileExistsAtPath:path];
|
||||
|
||||
Reference in New Issue
Block a user