mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-03-21 11:22:37 +01:00
rom_list_page,rom_so_confirm_page
This commit is contained in:
53
sysgo/UI/Emulator/emulator.go
Normal file
53
sysgo/UI/Emulator/emulator.go
Normal file
@@ -0,0 +1,53 @@
|
||||
package Emulator
|
||||
|
||||
import (
|
||||
|
||||
"github.com/cuu/LauncherGoDev/sysgo/UI"
|
||||
)
|
||||
|
||||
type ActionConfig struct {
|
||||
ROM string `json:"ROM"`
|
||||
ROM_SO string `json:"ROM_SO"`
|
||||
EXT []string `json:"EXT"`
|
||||
EXCLUDE []string `json:"EXCLUDE"`
|
||||
FILETYPE string `json:"FILETYPE"` // defalut is file
|
||||
LAUNCHER string `json:"LAUNCHER"`
|
||||
TITLE string `json:"TITLE"` // defaut is Game
|
||||
SO_URL string `json:"SO_URL"`
|
||||
RETRO_CONFIG string `json:"RETRO_CONFIG"`
|
||||
}
|
||||
|
||||
|
||||
var (
|
||||
FavGID = 31415
|
||||
FavGname = "cpifav"
|
||||
|
||||
)
|
||||
|
||||
|
||||
type MyEmulator struct { // as leader of RomListPage and FavListPage, it's a PluginInterface
|
||||
Name string
|
||||
RomPage *RomListPage
|
||||
FavPage *FavListPage
|
||||
}
|
||||
|
||||
func NewMyEmulator() *MyEmulator{
|
||||
p := &MyEmulator{}
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
func (self *MyEmulator) GetName() string {
|
||||
return "MyEmulator"
|
||||
}
|
||||
|
||||
func (self *MyEmulator) Init(main_screen *UI.MainScreen) {
|
||||
|
||||
}
|
||||
|
||||
func (self *MyEmulator) API(main_screen *UI.MainScreen) {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user