mirror of https://github.com/LIJI32/SameBoy.git
Update cocoa.m
Replace UTF8String with fileSystemRepresentation when passing strings to lower-level APIs.
This commit is contained in:
parent
0c5e15b49d
commit
7da4c7c1c1
|
@ -13,7 +13,7 @@ char *do_open_rom_dialog(void)
|
|||
[key makeKeyAndOrderFront:nil];
|
||||
NSString *ret = [[[dialog URLs] firstObject] path];
|
||||
if (ret) {
|
||||
return strdup(ret.UTF8String);
|
||||
return strdup(ret.fileSystemRepresentation);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ char *do_open_folder_dialog(void)
|
|||
[key makeKeyAndOrderFront:nil];
|
||||
NSString *ret = [[[dialog URLs] firstObject] path];
|
||||
if (ret) {
|
||||
return strdup(ret.UTF8String);
|
||||
return strdup(ret.fileSystemRepresentation);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue