This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| new:port_detection [2018/02/17 12:27] – korshun | new:port_detection [2019/04/21 21:28] (current) – removed korshun | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Port detection ====== | ||
| - | |||
| - | ACSUtils provide a function to detect which engine (source port) it's running on: | ||
| - | |||
| - | '' | ||
| - | |||
| - | Returns one of the following: | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | The following functions are provided for easier use: | ||
| - | |||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | You can also display the name of the port the mod is running in using '' | ||
| - | |||
| - | < | ||
| - | print(s:" | ||
| - | </ | ||
| - | |||
| - | ===== Renderer detection ===== | ||
| - | |||
| - | ACSUtils also provides a function to check if Software or OpenGL renderer is used: | ||
| - | |||
| - | '' | ||
| - | |||
| - | It can only be used clientside. It has several features over checking '' | ||
| - | |||
| - | * It will return false in ZDoom even if '' | ||
| - | * It takes '' | ||
| - | |||
| - | ===== How port detection works ===== | ||
| - | |||
| - | First, '' | ||
| - | |||
| - | Second, existence of '' | ||
| - | |||
| - | If both checks fail, the port is ZDoom. | ||