Implement GoToURL().

This commit is contained in:
Steve Checkoway
2006-04-29 08:36:43 +00:00
parent 9350fe2427
commit 6869d2f0ba
2 changed files with 12 additions and 1 deletions
@@ -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
@@ -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;