Module src.utils.os_detect

OS detection module.

Uses LÖVE’s system API to determine the host operating system.

Functions

getPlatform () Returns a normalized platform name.


Functions

getPlatform ()
Returns a normalized platform name. Queries love.system.getOS(), lowercases the result, and matches against known substrings.

Returns:

    string “windows” if on any Windows OS
    “macos” if on macOS
    “linux” if on Linux
    “unknown” otherwise
generated by LDoc 1.5.0 Last updated 2025-09-04 12:20:37