state

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

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
}

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