ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:identifysourceport

This is an old revision of the document!


IdentifySourcePort

int IdentifySourcePort()

Description

Identifies the port the mod is being played in.

Returns one of the following constants:

  • PORT_ZDOOM
  • PORT_GZDOOM
  • PORT_ZANDRONUM

Inner workings

The function performs the following checks:

  1. If GetPlayerAccountName(0) returns a non-zero result, it is implemented and the port is assumed to be Zandronum.
  2. If a DynamicLight actor is present, the port is assumed to be GZDoom.
  3. Otherwise it's ZDoom.
functions/identifysourceport.1489782543.txt.gz · Last modified: 2017/03/17 22:29 by korshun