Implement GoToURL().
This commit is contained in:
@@ -287,6 +287,16 @@ void ArchHooks_darwin::ExitTimeCriticalSection()
|
|||||||
#endif
|
#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 )
|
int64_t ArchHooks::GetMicrosecondsSinceStart( bool bAccurate )
|
||||||
{
|
{
|
||||||
// http://developer.apple.com/qa/qa2004/qa1398.html
|
// http://developer.apple.com/qa/qa2004/qa1398.html
|
||||||
|
|||||||
@@ -9,11 +9,12 @@ class ArchHooks_darwin : public ArchHooks
|
|||||||
public:
|
public:
|
||||||
ArchHooks_darwin();
|
ArchHooks_darwin();
|
||||||
~ArchHooks_darwin();
|
~ArchHooks_darwin();
|
||||||
RString GetArchName() { return "OSX"; }
|
RString GetArchName() { return "OS X"; }
|
||||||
void DumpDebugInfo();
|
void DumpDebugInfo();
|
||||||
RString GetPreferredLanguage();
|
RString GetPreferredLanguage();
|
||||||
void EnterTimeCriticalSection();
|
void EnterTimeCriticalSection();
|
||||||
void ExitTimeCriticalSection();
|
void ExitTimeCriticalSection();
|
||||||
|
bool GoToURL( RString sUrl );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
RageMutex *TimeCritMutex;
|
RageMutex *TimeCritMutex;
|
||||||
|
|||||||
Reference in New Issue
Block a user