Skip to content

MTY_GetPlatformString

chrisd1100 edited this page Aug 25, 2022 · 2 revisions

Turn a platform integer into a readable string.

const char *MTY_GetPlatformString(
    uint32_t platform
);

Parameters

platform (uint32_t)

Platform integer returned by MTY_GetPlatform or MTY_GetPlatformNoWeb. Bytes in the platform integer may be masked out to omit components of the string, i.e. a mask of 0xFFFF will create a string only with the version and not the OS, and a mask of 0xFF000000 will create a string only with the OS.

Return value

const char *

Example format would be Windows 10.0.

This buffer is allocated in thread local storage and must not be freed.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: System

Clone this wiki locally