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