ports

package
v0.22.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Zdoom = iota
	Chocolate
	Boom

	ZdoomSaveExtension     = ".zds.json"
	BoomSaveExtension      = ".dsg"
	ChocolateSaveExtension = ".dsg"
)

Variables

View Source
var (
	PortCanonicalNames = map[string]string{
		"gzdoom":     "gzdoom",
		"zandronum":  "zandronum",
		"lzdoom":     "lzdoom",
		"crispy":     "crispydoom",
		"chocolate":  "chocolatedoom",
		"prboomplus": "prboomplus",
		"boom":       "boom",
		"dsda-doom":  "dsda",
		"woof":       "woof",
		"na":         "unknown_port",
	}
)

Functions

func AdjustedSkill

func AdjustedSkill(port string, skill int) int

AdjustedSkill for source port default(zdoom): 0-4 (documenation seems wrong?, so 1-5) chocolate: 1-5 boom: 1-5

func CanonicalName

func CanonicalName(port string) string

CanonicalName translates the given port name to a canonical version by looking it up

func ConfigFileExtension

func ConfigFileExtension(port string) string

ConfigFileExtension returns the file extension of config files for the give port

func Family

func Family(port string) (t int)

Family checks the games engine type by inspecting the string known keyphrases will be interpreted as a certain source port family

func SaveDirParam

func SaveDirParam(port string) string

SaveDirParam returns the right paramter key for specifying the savegame directory accounts for zdoom-, chocolate-doom and boom ports at the moments

func SaveFileExtension

func SaveFileExtension(port string) string

SaveFileExtension gives the appropriate file extension adjusted for the games source port

func SaveGameName

func SaveGameName(port, save string) string

SaveGameName gives the appropriate syntax for save names adjusted for the games source port

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL