Difference between revisions of "Development:API"
From PCGamingWiki, the wiki about fixing PC games
(1:1 with live) |
(added DOS modes vardefine for "unknown") |
||
(One intermediate revision by the same user not shown) | |||
Line 47: | Line 47: | ||
<td class="table-api-body-support">{{#switch:{{lc:{{{direct3d versions|}}}}} | <td class="table-api-body-support">{{#switch:{{lc:{{{direct3d versions|}}}}} | ||
|true | |true | ||
− | |unknown={{Tickcross|{{{direct3d versions|}}}| | + | |unknown={{Tickcross|{{{direct3d versions|}}}||unknown}} |
− | |hackable={{Tickcross|hackable| | + | |hackable={{Tickcross|hackable||{{{direct3d notes|}}}}} |
|#default={{#arraymaptemplate:{{{direct3d versions}}}|API/switch Direct3D|,|, }} }}</td> | |#default={{#arraymaptemplate:{{{direct3d versions}}}|API/switch Direct3D|,|, }} }}</td> | ||
<td class="table-api-body-notes">{{{direct3d notes|}}}</td> | <td class="table-api-body-notes">{{{direct3d notes|}}}</td> | ||
Line 60: | Line 60: | ||
<td class="table-api-body-support">{{#switch:{{lc:{{{directdraw versions|}}}}} | <td class="table-api-body-support">{{#switch:{{lc:{{{directdraw versions|}}}}} | ||
|true | |true | ||
− | |unknown={{Tickcross|{{{directdraw versions|}}}| | + | |unknown={{Tickcross|{{{directdraw versions|}}}||unknown}} |
− | |hackable={{Tickcross|hackable| | + | |hackable={{Tickcross|hackable||{{{directdraw notes|}}}}} |
− | |#default={{{directdraw versions|}}} | + | |#default={{{directdraw versions|}}} |
+ | }}</td> | ||
<td class="table-api-body-notes">{{{directdraw notes|}}}</td> | <td class="table-api-body-notes">{{{directdraw notes|}}}</td> | ||
</tr> | </tr> | ||
Line 73: | Line 74: | ||
<tr class="template-infotable-body table-api-body-row"> | <tr class="template-infotable-body table-api-body-row"> | ||
<th scope="row" class="table-api-body-parameter">WinG</th> | <th scope="row" class="table-api-body-parameter">WinG</th> | ||
− | <td class="table-api-body-support">{{Tickcross|{{{wing|}}}| | + | <td class="table-api-body-support">{{Tickcross|{{{wing|}}}||{{{wing notes|}}}}}</td> |
<td class="table-api-body-notes">{{{wing notes|}}}</td> | <td class="table-api-body-notes">{{{wing notes|}}}</td> | ||
</tr> | </tr> | ||
Line 86: | Line 87: | ||
<td class="table-api-body-support">{{#switch:{{lc:{{{opengl versions|}}}}} | <td class="table-api-body-support">{{#switch:{{lc:{{{opengl versions|}}}}} | ||
|true | |true | ||
− | |unknown={{Tickcross|{{{opengl versions|}}}| | + | |unknown={{Tickcross|{{{opengl versions|}}}||unknown}} |
− | |hackable={{Tickcross|hackable| | + | |hackable={{Tickcross|hackable||{{{opengl notes|}}}}} |
− | |#default={{{opengl versions|}}} | + | |#default={{{opengl versions|}}} |
+ | }}</td> | ||
<td class="table-api-body-notes">{{{opengl notes|}}}</td> | <td class="table-api-body-notes">{{{opengl notes|}}}</td> | ||
</tr> | </tr> | ||
Line 100: | Line 102: | ||
|true | |true | ||
|unknown | |unknown | ||
− | |hackable={{Tickcross|{{{glide versions|}}}| | + | |hackable={{Tickcross|{{{glide versions|}}}||{{{glide notes|}}}}} |
− | |#default={{{glide versions|}}} | + | |#default={{{glide versions|}}} |
+ | }}</td> | ||
<td class="table-api-body-notes">{{{glide notes|}}}</td> | <td class="table-api-body-notes">{{{glide notes|}}}</td> | ||
</tr> | </tr> | ||
Line 111: | Line 114: | ||
<tr class="template-infotable-body table-api-body-row"> | <tr class="template-infotable-body table-api-body-row"> | ||
<th scope="row" class="table-api-body-parameter">Software renderer</th> | <th scope="row" class="table-api-body-parameter">Software renderer</th> | ||
− | <td class="table-api-body-support">{{Tickcross|{{{software mode|}}}| | + | <td class="table-api-body-support">{{Tickcross|{{{software mode|}}}||{{{software mode notes|}}}}}</td> |
<td class="table-api-body-notes">{{{software mode notes|}}}</td> | <td class="table-api-body-notes">{{{software mode notes|}}}</td> | ||
</tr> | </tr> | ||
Line 123: | Line 126: | ||
<tr class="template-infotable-body table-api-body-row"> | <tr class="template-infotable-body table-api-body-row"> | ||
<th scope="row" class="table-api-body-parameter"><abbr title="Only supported on compatible AMD video cards">Mantle support</abbr></th> | <th scope="row" class="table-api-body-parameter"><abbr title="Only supported on compatible AMD video cards">Mantle support</abbr></th> | ||
− | <td class="table-api-body-support">{{Tickcross|{{{mantle support|}}}| | + | <td class="table-api-body-support">{{Tickcross|{{{mantle support|}}}||{{{mantle support notes|}}}}}{{#vardefine:Warnings|true}}</td> |
<td class="table-api-body-notes">{{#if:{{{mantle support notes|}}}|{{{mantle support notes|}}}|''Requires an AMD video card with a driver version earlier than 19.5.1 (2019).''<ref name="Mantle support"/>}}</td> | <td class="table-api-body-notes">{{#if:{{{mantle support notes|}}}|{{{mantle support notes|}}}|''Requires an AMD video card with a driver version earlier than 19.5.1 (2019).''<ref name="Mantle support"/>}}</td> | ||
</tr> | </tr> | ||
Line 135: | Line 138: | ||
<tr class="template-infotable-body table-api-body-row"> | <tr class="template-infotable-body table-api-body-row"> | ||
<th scope="row" class="table-api-body-parameter"><abbr title="Only supported on macOS (OS X)">Metal support</abbr></th> | <th scope="row" class="table-api-body-parameter"><abbr title="Only supported on macOS (OS X)">Metal support</abbr></th> | ||
− | <td class="table-api-body-support">{{Tickcross|{{{metal support|}}}| | + | <td class="table-api-body-support">{{Tickcross|{{{metal support|}}}||{{{metal support notes|}}}}}</td> |
<td class="table-api-body-notes">{{{metal support notes|}}}</td> | <td class="table-api-body-notes">{{{metal support notes|}}}</td> | ||
</tr> | </tr> | ||
Line 148: | Line 151: | ||
<th scope="row" class="table-api-body-parameter">Vulkan</th> | <th scope="row" class="table-api-body-parameter">Vulkan</th> | ||
<td class="table-api-body-support">{{#switch:{{lc:{{{vulkan versions|}}}}} | <td class="table-api-body-support">{{#switch:{{lc:{{{vulkan versions|}}}}} | ||
− | |true={{Tickcross|true| | + | |true={{Tickcross|true||true}}{{#vardefine:Vulkan versions|true}} |
− | |hackable={{Tickcross|hackable| | + | |hackable={{Tickcross|hackable||{{{vulkan notes|}}}}}{{#vardefine:Vulkan versions|hackable}} |
|#default={{#arraymaptemplate:{{{vulkan versions}}}|API/switch Vulkan|,|, }} }}</td> | |#default={{#arraymaptemplate:{{{vulkan versions}}}|API/switch Vulkan|,|, }} }}</td> | ||
<td class="table-api-body-notes">{{{vulkan notes|}}}</td> | <td class="table-api-body-notes">{{{vulkan notes|}}}</td> | ||
Line 159: | Line 162: | ||
<tr class="template-infotable-body table-api-body-row"> | <tr class="template-infotable-body table-api-body-row"> | ||
<th scope="row" class="table-api-body-parameter"><abbr title="Only applies to DOS and/or PC booter versions">DOS video modes</abbr></th> | <th scope="row" class="table-api-body-parameter"><abbr title="Only applies to DOS and/or PC booter versions">DOS video modes</abbr></th> | ||
− | <td class="table-api-body-support">{{#if: {{{dos modes|}}} | {{#ifeq: {{{dos modes|}}} | unknown | {{tickcross|unknown | + | <td class="table-api-body-support">{{#if: {{{dos modes|}}} | {{#ifeq: {{{dos modes|}}} | unknown | {{tickcross|unknown}}{{#vardefine:DOS modes|unknown}} | {{#arraymaptemplate:{{{dos modes}}}|API/switch DOS|,|, }} }} | {{tickcross|unknown}}{{#vardefine:DOS modes|unknown}} }}</td></td> |
<td class="table-api-body-notes">{{{dos modes notes|}}}</td> | <td class="table-api-body-notes">{{{dos modes notes|}}}</td> | ||
</tr> | </tr> | ||
Line 202: | Line 205: | ||
-->{{#if:{{#var:powerpc app}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}}<!-- | -->{{#if:{{#var:powerpc app}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}}<!-- | ||
-->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross|true}}</td>}} | -->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross|true}}</td>}} | ||
− | <td class="table-api-body-support">{{Tickcross|{{{windows 32-bit exe|}}}| | + | <td class="table-api-body-support">{{Tickcross|{{{windows 32-bit exe|}}}||{{{windows exe notes|}}}}}</td> |
− | <td class="table-api-body-support">{{Tickcross|{{{windows 64-bit exe|}}}| | + | <td class="table-api-body-support">{{Tickcross|{{{windows 64-bit exe|}}}||{{{windows exe notes|}}}}}</td><!-- |
− | -->{{#if:{{#var:arm app}}|<td class="table-api-body-support">{{Tickcross|{{{windows arm app|}}}| | + | -->{{#if:{{#var:arm app}}|<td class="table-api-body-support">{{Tickcross|{{{windows arm app|}}}||{{{windows exe notes|}}}}}</td>}} |
<td class="table-api-body-notes">{{#if: {{{windows exe notes|}}}|{{{windows exe notes|}}}|{{#if:{{#var:Windows 3.x native}}|''Windows 3.x version might be playable on a 64-bit OS using {{#if:{{#var:ScummVM}}|[[ScummVM]]|[https://github.com/otya128/winevdm winevdm]}}.''}}}}</td> | <td class="table-api-body-notes">{{#if: {{{windows exe notes|}}}|{{{windows exe notes|}}}|{{#if:{{#var:Windows 3.x native}}|''Windows 3.x version might be playable on a 64-bit OS using {{#if:{{#var:ScummVM}}|[[ScummVM]]|[https://github.com/otya128/winevdm winevdm]}}.''}}}}</td> | ||
</tr> | </tr> | ||
Line 213: | Line 216: | ||
<tr class="template-infotable-body table-api-body-row"> | <tr class="template-infotable-body table-api-body-row"> | ||
<th scope="row" class="table-api-body-parameter">macOS (OS X)</th><!-- | <th scope="row" class="table-api-body-parameter">macOS (OS X)</th><!-- | ||
− | -->{{#if:{{#var:powerpc app}}|<td class="table-api-body-support">{{Tickcross|{{{mac os x powerpc app|}}}| | + | -->{{#if:{{#var:powerpc app}}|<td class="table-api-body-support">{{Tickcross|{{{mac os x powerpc app|}}}||{{{macos app notes|}}}}}</td><!-- |
-->{{#ifeq:{{{mac os x powerpc app|}}}{{{macos intel 32-bit app|}}}{{{macos 32-bit app|}}}{{{macos intel 64-bit app|}}}{{{macos 64-bit app|}}}|truefalsefalse|{{#ifeq:{{{macos arm app|}}}|true||{{#vardefine:Warnings|true}}}}}}}}<!-- | -->{{#ifeq:{{{mac os x powerpc app|}}}{{{macos intel 32-bit app|}}}{{{macos 32-bit app|}}}{{{macos intel 64-bit app|}}}{{{macos 64-bit app|}}}|truefalsefalse|{{#ifeq:{{{macos arm app|}}}|true||{{#vardefine:Warnings|true}}}}}}}}<!-- | ||
-->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}} | -->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}} | ||
<td class="table-api-body-support">{{Tickcross|{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}|macOS Intel 32-bit app|{{{macos app notes|}}}}}</td> | <td class="table-api-body-support">{{Tickcross|{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}|macOS Intel 32-bit app|{{{macos app notes|}}}}}</td> | ||
<td class="table-api-body-support">{{Tickcross|{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}|macOS Intel 64-bit app|{{{macos app notes|}}}}}</td><!-- | <td class="table-api-body-support">{{Tickcross|{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}|macOS Intel 64-bit app|{{{macos app notes|}}}}}</td><!-- | ||
− | -->{{#if:{{#var:arm app}}|<td class="table-api-body-support">{{Tickcross|{{{macos arm app|}}}| | + | -->{{#if:{{#var:arm app}}|<td class="table-api-body-support">{{Tickcross|{{{macos arm app|}}}||{{{macos app notes|}}}}}</td>}} |
<td class="table-api-body-notes">{{#ifeq:{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}|truefalse|{{#ifeq:{{{macos arm app|}}}|true||{{#if:{{{macos app notes|}}}{{{macos arm notes|}}}|{{{macos app notes|}}} {{{macos arm notes|}}}|''This 32-bit-only macOS game '''does not work''' on macOS Catalina (10.15) or later.''}}}}|{{{macos app notes|}}} {{{macos arm notes|}}}}}</td> | <td class="table-api-body-notes">{{#ifeq:{{{macos intel 32-bit app|{{{macos 32-bit app|}}}}}}{{{macos intel 64-bit app|{{{macos 64-bit app|}}}}}}|truefalse|{{#ifeq:{{{macos arm app|}}}|true||{{#if:{{{macos app notes|}}}{{{macos arm notes|}}}|{{{macos app notes|}}} {{{macos arm notes|}}}|''This 32-bit-only macOS game '''does not work''' on macOS Catalina (10.15) or later.''}}}}|{{{macos app notes|}}} {{{macos arm notes|}}}}}</td> | ||
</tr> | </tr> | ||
Line 231: | Line 234: | ||
<tr class="template-infotable-body table-api-body-row"> | <tr class="template-infotable-body table-api-body-row"> | ||
<th scope="row" class="table-api-body-parameter">Linux</th><!-- | <th scope="row" class="table-api-body-parameter">Linux</th><!-- | ||
− | -->{{#if:{{#var:powerpc app}}|<td class="table-api-body-support">{{Tickcross|{{{linux powerpc app|}}}| | + | -->{{#if:{{#var:powerpc app}}|<td class="table-api-body-support">{{Tickcross|{{{linux powerpc app|}}}||{{{linux executable notes|}}}}}</td>}}<!-- |
-->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}} | -->{{#if:{{#var:Windows 3.x native}}|<td class="table-api-body-support">{{Tickcross-na|n/a}}</td>}} | ||
− | <td class="table-api-body-support">{{Tickcross|{{{linux 32-bit executable|}}}| | + | <td class="table-api-body-support">{{Tickcross|{{{linux 32-bit executable|}}}||{{{linux executable notes|}}}}}</td> |
− | <td class="table-api-body-support">{{Tickcross|{{{linux 64-bit executable|}}}| | + | <td class="table-api-body-support">{{Tickcross|{{{linux 64-bit executable|}}}||{{{linux executable notes|}}}}}</td><!-- |
− | -->{{#if:{{#var:arm app}}|<td class="table-api-body-support">{{Tickcross|{{{linux arm app|}}}| | + | -->{{#if:{{#var:arm app}}|<td class="table-api-body-support">{{Tickcross|{{{linux arm app|}}}||{{{linux executable notes|}}}}}</td>}} |
<td class="table-api-body-notes">{{{linux executable notes|}}}</td> | <td class="table-api-body-notes">{{{linux executable notes|}}}</td> | ||
</tr> | </tr> |
Latest revision as of 02:10, 3 October 2021
Error: #cargo_declare must be called from a template page.
Documentation for the above template (sometimes hidden from view).
Visit Development:API/Documentation to edit this text. (How does this work?)