API:IsMacClient
From RoR Wiki
UI Lua API · Interface functions
Version: WAR 1.4.8
Returns whether the game is running as the Mac version of the client.
isMac = IsMacClient()
Arguments
None.
Returns
- isMac
boolean–trueon the Mac version,falseotherwise.
Details
- The value is a flag the client sets once at startup. It is
trueonly when the Mac compatibility layer is detected (anntdllexport namedTGGetOSthat reportsMacOSX). On Windows it is alwaysfalse. - The same flag makes Settings.HardwareSupportsPostProc return
false. - Arguments are not checked; anything passed is ignored.
- The stock UI never calls
IsMacClient.
Errors
None.
Example
A minimal example built from the signature above:
if( IsMacClient() ) then
-- Mac-specific handling
end
