Documentation
¶
Index ¶
Constants ¶
View Source
const ( FW_CLR_GRAY uint8 = iota FW_CLR_BROWN FW_CLR_RED FW_CLR_PINK FW_CLR_ORANGE FW_CLR_YELLOW FW_CLR_LIME_GREEN FW_CLR_GREEN FW_CLR_DARK_GREEN FW_CLR_SEA_GREEN FW_CLR_TURQUOISE FW_CLR_BLUE FW_CLR_DARK_BLUE FW_CLR_DARK_PURPLE FW_CLR_VIOLET FW_CLR_MAGENTA )
View Source
const ( FORMAT_OBJ = iota FORMAT_GLTF )
View Source
const CONFIG_PATH = "./config.toml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Fullscreen bool `toml:"fullscreen"`
TomlBackdrop int `toml:"backdrop_color"`
GamesPerRow int `toml:"games_per_row"`
Backdrop color.Color
CancelAudioInit bool `toml:"cancel_audio_init"`
Mouse MouseConfig `toml:"mouse"`
Jit Jit `toml:"jit"`
Gb GbConfig `toml:"gb"`
Gba GbaConfig `toml:"gba"`
Nds NdsConfig `toml:"nds"`
KeyboardConfig KeyboardConfig `toml:"keyboard"`
ControllerConfig ControllerConfig `toml:"controller"`
VsyncDisabled bool `coml:"vsync_disabled"`
}
var Conf Config
type ControllerConfig ¶
type EmulatorControllerConfig ¶
type EmulatorControllerConfig struct {
A []int `toml:"a"`
B []int `toml:"b"`
Select []int `toml:"select"`
Start []int `toml:"start"`
Left []int `toml:"left"`
Right []int `toml:"right"`
Up []int `toml:"up"`
Down []int `toml:"down"`
R []int `toml:"r"`
L []int `toml:"l"`
X []int `toml:"x"`
Y []int `toml:"y"`
Hinge []int `toml:"hinge"`
}
type EmulatorKeyboardConfig ¶
type EmulatorKeyboardConfig struct {
A []string `toml:"a"`
B []string `toml:"b"`
Select []string `toml:"select"`
Start []string `toml:"start"`
Left []string `toml:"left"`
Right []string `toml:"right"`
Up []string `toml:"up"`
Down []string `toml:"down"`
R []string `toml:"r"`
L []string `toml:"l"`
X []string `toml:"x"`
Y []string `toml:"y"`
Hinge []string `toml:"hinge"`
Debug []string `toml:"Debug"`
LayoutToggle []string `toml:"layout_toggle"`
SizingToggle []string `toml:"sizing_toggle"`
RotationToggle []string `toml:"rotation_toggle"`
ExportScene []string `toml:"export_scene"`
}
type GbConfig ¶
type GbConfig struct {
TomlPalette []int `toml:"dmg_palette"`
KeyboardConfig EmulatorKeyboardConfig `toml:"keyboard"`
ControllerConfig EmulatorControllerConfig `toml:"controller"`
ConsoleType string `toml:"type"`
Palette [][]uint8
ForceDMG bool
ForceGBC bool
}
type GbaConfig ¶
type GbaConfig struct {
KeyboardConfig EmulatorKeyboardConfig `toml:"keyboard"`
ControllerConfig EmulatorControllerConfig `toml:"controller"`
SkipHle bool `toml:"skip_hle"`
Threads int `toml:"threads"`
IdleOptimize bool `toml:"idle_optimize"`
SoundClockUpdateCycles int `toml:"sound_clock_update_cycles"`
DisableSaves bool `toml:"disable_saves"`
}
type KeyboardConfig ¶
type KeyboardConfig struct {
Select []string `toml:"select"`
Mute []string `toml:"mute"`
Pause []string `toml:"pause"`
Left []string `toml:"left"`
Right []string `toml:"right"`
Up []string `toml:"up"`
Down []string `toml:"down"`
Fullscreen []string `toml:"fullscreen"`
Quit []string `toml:"quit"`
Unlimited []string `toml:"unlimited"`
Fps15 []string `toml:"fps15"`
Fps30 []string `toml:"fps30"`
Fps60 []string `toml:"fps60"`
Fps120 []string `toml:"fps120"`
Fps180 []string `toml:"fps180"`
Fps240 []string `toml:"fps240"`
}
type MouseConfig ¶
type MouseConfig struct {
Fill bool `toml:"fill"`
Stroke bool `toml:"stroke"`
UnSelectedAlpha float32 `toml:"unselected_alpha"`
CursorSize int `toml:"cursor_diameter"`
StrokeSize int `toml:"stroke_width"`
TomlFillColor int `toml:"fill_color"`
TomlStrokeColor int `toml:"stroke_color"`
FillColor []uint8
StrokeColor []uint8
}
type NdsConfig ¶
type NdsConfig struct {
Screen NdsScreen `toml:"screen"`
KeyboardConfig EmulatorKeyboardConfig `toml:"keyboard"`
ControllerConfig EmulatorControllerConfig `toml:"controller"`
Firmware NdsFirmware `toml:"firmware"`
Rtc NdsRtc `toml:"rtc"`
Export NdsExport `toml:"export"`
Threads int `toml:"threads"`
DisableSaves bool `toml:"disable_saves"`
FrameSkip uint32 `toml:"frame_skip"`
DynamicFrameSkip bool `toml:"dynamic_frame_skip"`
Bios NdsBios `toml:"bios"`
}
type NdsFirmware ¶
Click to show internal directories.
Click to hide internal directories.