gsgm_service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDir

func CheckDir(path string) error

deprecated: 检查目录和文件是否存在,重复判断了

func CheckHistory

func CheckHistory(path string) error

检查该路径的游戏 history.json 合法

func CheckImg

func CheckImg(path string) error

检查该路径的游戏 cover.[png,jpg,jpeg] 合法

func CheckInfo

func CheckInfo(path string) error

检查该路径的游戏 info.json 合法

func CheckSetting

func CheckSetting(path string) error

检查该路径的游戏 setting.json 合法

func DeepGamePack

func DeepGamePack(path string) []gsgm_dto.GamePack

递归游戏库,并返回按游戏组分类的游戏集合

func DeepGamePath

func DeepGamePath(path string) []string

简单递归遍历游戏库,返回所有游戏路径

func GetGsgmHistoryByPath

func GetGsgmHistoryByPath(path string) (*gsgm_setting.GsgmHistory, error)

接受游戏路径,返回 GsgmHistory

func GetGsgmInfoByPath

func GetGsgmInfoByPath(path string) (*gsgm_setting.GsgmInfo, error)

接受游戏路径,返回 GsgmInfo

func GetGsgmSettingByPath

func GetGsgmSettingByPath(path string) (*gsgm_setting.GsgmSetting, error)

接受游戏路径,返回 GsgmSetting

func GetImgPath

func GetImgPath(gamePath string) (string, error)

尝试从 path 获取真实存在的 cover.[jpg,jpeg,png]

func SaveBack

func SaveBack() error

TODO

func SaveRestore

func SaveRestore() error

TODO

Types

This section is empty.

Jump to

Keyboard shortcuts

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