diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp index 4c8a54e30f..8120078445 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp +++ b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp @@ -287,6 +287,16 @@ void ArchHooks_darwin::ExitTimeCriticalSection() #endif } +bool ArchHooks_darwin::GoToURL( RString sUrl ) +{ + CFURLRef url = CFURLCreateWithBytes( kCFAllocatorDefault, (const UInt8*)sUrl.data(), + sUrl.length(), kCFStringEncodingUTF8, NULL ); + OSStatus result = LSOpenCFURLRef( url, NULL ); + + CFRelease( url ); + return result == 0; +} + int64_t ArchHooks::GetMicrosecondsSinceStart( bool bAccurate ) { // http://developer.apple.com/qa/qa2004/qa1398.html diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.h b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.h index 5d42e65ae5..996a530a18 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.h +++ b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.h @@ -9,11 +9,12 @@ class ArchHooks_darwin : public ArchHooks public: ArchHooks_darwin(); ~ArchHooks_darwin(); - RString GetArchName() { return "OSX"; } + RString GetArchName() { return "OS X"; } void DumpDebugInfo(); RString GetPreferredLanguage(); void EnterTimeCriticalSection(); void ExitTimeCriticalSection(); + bool GoToURL( RString sUrl ); protected: RageMutex *TimeCritMutex;