platform
module ‘platform’
Source file: prog/gameLibs/quirrel/bindQuirrelEx/platformMisc.cpp
Usage:
let { get_locale_lang, get_locale_country, get_platform_string_id, get_console_model, get_console_model_revision, get_default_lang, n, UNKNOWN, PS4, PS4_PRO, XBOXONE, XBOXONE_S, XBOXONE_X, XBOX_LOCKHART, XBOX_ANACONDA, PS5, NINTENDO_SWITCH } = require("platform")
or:
from "platform" import *
//'platform' exports:
{
function get_locale_lang()
function get_locale_country()
function get_platform_string_id()
function get_console_model(): -> integer
function get_console_model_revision()
function get_default_lang()
const n
const UNKNOWN
const PS4
const PS4_PRO
const XBOXONE
const XBOXONE_S
const XBOXONE_X
const XBOX_LOCKHART
const XBOX_ANACONDA
const PS5
const NINTENDO_SWITCH
}
- function get_locale_lang()
nparamscheck:1
typecheck mask: any_type
- function get_locale_country()
nparamscheck:1
typecheck mask: any_type
- function get_platform_string_id()
- function get_console_model()
- Returns
integer
- function get_console_model_revision()
- function get_default_lang()
- const n
- const UNKNOWN
- const PS4
- const PS4_PRO
- const XBOXONE
- const XBOXONE_S
- const XBOXONE_X
- const XBOX_LOCKHART
- const XBOX_ANACONDA
- const PS5
- const NINTENDO_SWITCH