mirror of
https://github.com/libretro/Play-.git
synced 2025-03-04 09:17:50 +00:00
Revert overzealous use of fileSystemRepresentation:
It was causing internal problems with Cocoa on empty strings.
This commit is contained in:
parent
83d63de9cb
commit
262963a023
@ -192,8 +192,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
m_value = [[NSFileManager defaultManager] stringWithFileSystemRepresentation:preferenceValue length:strlen(preferenceValue)];
|
||||
[m_value retain];
|
||||
m_value = [[NSString alloc] initWithUTF8String: preferenceValue];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@ -236,7 +235,7 @@
|
||||
|
||||
-(void)save
|
||||
{
|
||||
CAppConfig::GetInstance().SetPreferenceString(PS2VM_CDROM0PATH, [m_value fileSystemRepresentation]);
|
||||
CAppConfig::GetInstance().SetPreferenceString(PS2VM_CDROM0PATH, [m_value UTF8String]);
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
x
Reference in New Issue
Block a user