mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 04:35:16 +00:00
MACOSX: Improve conversion of path from NSString to C string
Use `-[NSString fileSystemRepresentation]` if you are going to pass a path to a lower-level function, like `fopen()`.
This commit is contained in:
parent
2f753222fe
commit
b9d234e986
@ -108,5 +108,5 @@ Common::String getDesktopPathMacOSX() {
|
||||
NSString *path = [paths objectAtIndex:0];
|
||||
if (path == nil)
|
||||
return Common::String();
|
||||
return Common::String([path cStringUsingEncoding:NSASCIIStringEncoding]);
|
||||
return Common::String([path fileSystemRepresentation]);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user