mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #499 from Azaezel/alpha40/macwork
mac compilation and standarization fixes
This commit is contained in:
commit
18a7e31991
|
|
@ -129,17 +129,15 @@ void tc_sleep(NxU32 ms)
|
|||
|
||||
void tc_spinloop()
|
||||
{
|
||||
#ifdef __linux__
|
||||
asm ( "pause" );
|
||||
#elif defined( _XBOX )
|
||||
// Pause would do nothing on the Xbox. Threads are not scheduled.
|
||||
#elif defined( _WIN64 )
|
||||
YieldProcessor( );
|
||||
#elif (defined( __arm64__ ) && defined( __APPLE__ )) || defined( __arch64__ )
|
||||
pthread_yield_np();
|
||||
#else
|
||||
__asm { pause };
|
||||
#endif
|
||||
#if defined( _XBOX )
|
||||
// Pause would do nothing on the Xbox. Threads are not scheduled.
|
||||
#elif defined( _WIN64 )
|
||||
YieldProcessor( );
|
||||
#elif defined( __APPLE__ )||(__linux__)
|
||||
pthread_yield_np();
|
||||
#else
|
||||
__asm { pause };
|
||||
#endif
|
||||
}
|
||||
|
||||
void tc_interlockedExchange(void *dest, const int64_t exchange)
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ const char* Platform::getUserDataDirectory()
|
|||
//-----------------------------------------------------------------------------
|
||||
const char* Platform::getUserHomeDirectory()
|
||||
{
|
||||
return StringTable->insert([[@"~/" stringByStandardizingPath] UTF8String]);
|
||||
return StringTable->insert([[@"~/Documents" stringByStandardizingPath] UTF8String]);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue