Revert overzealous use of fileSystemRepresentation:

It was causing internal problems with Cocoa on empty strings.
This commit is contained in:
C.W. Betts 2016-12-07 18:54:01 -07:00
parent 83d63de9cb
commit 262963a023

View File

@ -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