https://powdertoy.co.uk/Wiki/index.php?action=history&feed=atom&title=Lua_API%3APlatform
Lua API:Platform - Revision history
2024-12-18T04:35:12Z
Revision history for this page on the wiki
MediaWiki 1.30.0
https://powdertoy.co.uk/Wiki/index.php?title=Lua_API:Platform&diff=9430&oldid=prev
jacob1: Add to lua category
2024-12-15T05:15:03Z
<p>Add to lua category</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr style="vertical-align: top;" lang="en">
<td colspan="2" style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: white; color:black; text-align: center;">Revision as of 05:15, 15 December 2024</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l68" >Line 68:</td>
<td colspan="2" class="diff-lineno">Line 68:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  nil plat.clipboardPaste(string text)</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  nil plat.clipboardPaste(string text)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>"Pastes" text to clipboard</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>"Pastes" text to clipboard</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Category:Lua]]</ins></div></td></tr>
<!-- diff cache key mediawiki-pw_:diff:version:1.11a:oldid:8745:newid:9430 -->
</table>
jacob1
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 />
"Copies" or returns text from clipboard<br />
<br />
=== platform.clipboardPaste ===<br />
nil plat.clipboardPaste(string text)<br />
"Pastes" text to clipboard</div>
Maticzpl