Table of Contents

GetPortName

str GetPortName()

Description

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

Possible return values are:

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());