Skip to content

Return of Reckoning

Wiki

RoR Wiki

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 – true on the Mac version, false otherwise.

Details

  • The value is a flag the client sets once at startup. It is true only when the Mac compatibility layer is detected (an ntdll export named TGGetOS that reports MacOSX). On Windows it is always false.
  • 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

See also