ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:getportname

Table of Contents

GetPortName

str GetPortName()

Description

Returns the name of the port the mod is being played in.

Possible return values are:

  • "ZDoom"
  • "GZDoom"
  • "Zandronum"

For a description of how ports are identified, see IdentifySourcePort.

If you want to check for source port and not just print its name, use IdentifySourcePort.

Examples

print(s:"You are playing this mod in ", s:GetPortName());
functions/getportname.txt · Last modified: 2017/03/17 22:22 by korshun