Help us shape the future of Go! Take the 2026 Go Developer Survey

run

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingGZDoom = errors.New(po.Get("gzdoom/zdoom not found"))
	ErrBadIwad       = errors.New(po.Get("the iwad is incorrect or does not exist"))
)
View Source
var GZDir string

Functions

func ExistsGZInPath

func ExistsGZInPath() bool

Types

type Pars

type Pars struct {
	Output bytes.Buffer `json:"-"`

	Error  error  `json:"-"`
	ErrOut string `json:"-"`
	IWad   string
	Skill  struct {
		Enabled bool
		Level   int
	}
	Warp struct {
		Enabled bool
		Level   string
	}
	Mods struct {
		Enabled bool
		List    []string
	}
	CustomArgs struct {
		Enabled bool
		Args    []string
	}

	Multiplayer struct {
		Enabled    bool
		NetMode    uint // 0: Peer to peer | 1: Packet server
		Host       int
		Port       int // Default:5029
		Deathmatch bool
		IP         string
	}

	FastMonsters    bool
	NoMonsters      bool
	RespawnMonsters bool

	NoSFX     bool
	NoMusic   bool
	NoSound   bool
	NoStartup bool
}

func (*Pars) MakeCmd

func (p *Pars) MakeCmd() *exec.Cmd

func (*Pars) Run

func (p *Pars) Run() error

func (*Pars) Start

func (p *Pars) Start() error

Jump to

Keyboard shortcuts

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