sdl.platform: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
m (Mex moved page Sdl.platform to sdl.platform)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{ScriptItem
{{ScriptItem2
|endpoint = shared
|name = sdl.platform
|side = shared
|type = variable
|type = variable
|name = sdl.platform
|games = iii vc sa iv
|returnTypes = string
|desc = fetch the platform
|usage = fetch the platform
|return = string a string representing the platform
|returnInfo = a string representing the platform
|note = [https://wiki.libsdl.org/SDL_GetPlatform View this function on the SDL Manual]<br>
|notes = [https://wiki.libsdl.org/SDL_GetPlatform View this function on the SDL Manual]<br>
Examples of a platform name returned, include:
Examples of a platform name returned, include:
* Windows
* Windows
Line 13: Line 13:
* iOS
* iOS
* Android
* Android
|readonly = true
}}
}}

Latest revision as of 20:36, 19 November 2022

Variable Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png Online and Offline Read-Only

Available since Server 1.0.0, Client 1.0.0

string sdl.platform

The sdl.platform variable is used to fetch the platform.

Value

string A string representing the platform.
readonly This variable cannot be changed.

Notes

Examples of a platform name returned, include:

  • Windows
  • Mac OS X
  • Linux
  • iOS
  • Android.

Examples

There aren't any examples for this variable.

Compatibility

There isn't any compatibility information for this variable.