state

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: GPL-3.0 Imports: 3 Imported by: 20

Documentation

Overview

Package state holds the global state of the app. It is a separate package so we can import it from anywhere.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Core        *libretro.Core // Current libretro core
	CoreRunning bool           // Should be true if a game or a gameless core is loaded
	MenuActive  bool           // When set to true, will display the menu layer
	Verbose     bool           // When set to true, will output a lots of logs
	CorePath    string         // Path of the current libretro core
	GamePath    string         // Path of the current game
	DB          rdb.DB         // The game database loaded on startup
	LudOS       bool           // Run Ludo as a unix desktop environment
	FastForward bool           // Run the core as fast as possible

	sync.Mutex
}

State is a type for the global state of the app

var Global State

Global state

Jump to

Keyboard shortcuts

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