ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


new:port_detection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
new:port_detection [2018/02/17 14:28] korshunnew:port_detection [2018/02/18 19:20] korshun
Line 5: Line 5:
 ''int IdentifySourcePort()'' ''int IdentifySourcePort()''
  
-Returns one of the following:+It returns one of the following:
  
   * ''PORT_ZDOOM''   * ''PORT_ZDOOM''
Line 42: Line 42:
  
 If both checks fail, the port is ZDoom. If both checks fail, the port is ZDoom.
 +
 +Port detection is performed only once. Subsequent calls to ''IdentifySourcePort()'' just return a cached result.