diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp index cde09c9980..bb772a0cda 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp +++ b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp @@ -85,7 +85,7 @@ ArchHooks_darwin::ArchHooks_darwin() CFStringRef appID = CFBundleGetIdentifier( bundle ); CFStringRef version = CFStringRef( CFBundleGetValueForInfoDictionaryKey(bundle, kCFBundleVersionKey) ); CFURLRef path = CFBundleCopyBundleURL( bundle ); - CFPropertyListRef value = CFURLCopyPath( path ); + CFPropertyListRef value = CFURLCopyFileSystemPath( path, kCFURLPOSIXPathStyle ); CFPropertyListRef old = CFPreferencesCopyAppValue( key, appID ); CFMutableDictionaryRef newDict = NULL; @@ -110,7 +110,7 @@ ArchHooks_darwin::ArchHooks_darwin() { // The value is either not present or it is but it is different newDict = CFDictionaryCreateMutableCopy( kCFAllocatorDefault, 0, dict ); - CFDictionaryAddValue( newDict, version, value ); + CFDictionarySetValue( newDict, version, value ); } CFRelease( old ); }