https://powdertoy.co.uk/Wiki/index.php?title=Lua_API:Platform&feed=atom&action=history Lua API:Platform - Revision history 2024-05-09T08:50:17Z Revision history for this page on the wiki MediaWiki 1.30.0 https://powdertoy.co.uk/Wiki/index.php?title=Lua_API:Platform&diff=8745&oldid=prev Maticzpl: Added platform page 2023-01-04T19:54:19Z <p>Added platform page</p> <p><b>New page</b></p><div>== Methods ==<br /> <br /> === platform.platform ===<br /> string plat.platform()<br /> Returns the platform that the game's executable is compiled for.<br /> <br /> Possible return values:<br /> * WIN64<br /> * WIN32<br /> * LIN64<br /> * LIN32<br /> * MACOSARM<br /> * MACOSX<br /> * UNKNOWN<br /> <br /> === platform.ident ===<br /> string plat.ident()<br /> Returns the target triplet for the game's executable containing the CPU family, the OS name and C environment separated by dashes <br /> <br /> Possible return values:<br /> * For CPU family: [https://mesonbuild.com/Reference-tables.html#cpu-families]<br /> * For OS name: [https://mesonbuild.com/Reference-tables.html#operating-system-names]<br /> * For C environment:<br /> ** msvc <br /> ** mingw <br /> ** macos <br /> ** bionic <br /> ** gnu<br /> <br /> <br /> === platform.build ===<br /> string plat.build()<br /> '''THIS FUNCTION IS DEPRECATED''' <br /> <br /> Possible return values:<br /> * SSE3 <br /> * SSE2 <br /> * SSE <br /> * NO<br /> <br /> <br /> === platform.releaseType ===<br /> string plat.releaseType()<br /> Returns the game's executable release type. <br /> <br /> Possible return values:<br /> * R ''(Release)''<br /> * B ''(Beta)''<br /> * S ''(Snapshot)''<br /> <br /> === platform.exeName ===<br /> string plat.exeName()<br /> Returns the path to the game's executable.<br /> <br /> === platform.restart ===<br /> nil plat.restart()<br /> Restarts the game<br /> <br /> === platform.openLink ===<br /> nil plat.openLink(string URI)<br /> Opens the provided link in the default system browser.<br /> <br /> === platform.clipboardCopy ===<br /> string plat.clipboardCopy()<br /> &quot;Copies&quot; or returns text from clipboard<br /> <br /> === platform.clipboardPaste ===<br /> nil plat.clipboardPaste(string text)<br /> &quot;Pastes&quot; text to clipboard</div> Maticzpl