Documentation ¶
Index ¶
Constants ¶
View Source
const ( GsgmInfoName = "info.json" GsgmSettingName = "setting.json" GsgmHistoryName = "history.json" GsgmDirName = ".gsgm" GsgmCoverName = "cover" GsgmIsPackPrefix = "@_" DefaultGroupName = "$default" )
View Source
const ( SlugPrefix = "gsgm-" ScriptPrefix = "gsgm-" BannerPrefix = "gsgm-" CoverartPrefix = "gsgm-" IconPrefix = "lutris_gsgm-" )
View Source
const ( CoverartSuffix = "jpg" BannerSuffix = "jpg" IconSuffix = "png" ScriptSuffix = "yml" )
Variables ¶
View Source
var ( GsgmTmpPath = filepath.Join(gsgmCachePath, "tmp") GsgmDbPath = filepath.Join(gsgmLocalPath, "gsgm.db") GsgmPrefixPath = filepath.Join(gsgmLocalPath, "prefix") GsgmDefaultPrefixPath = filepath.Join(gsgmLocalPath, "prefix", "0") )
View Source
var ( PgaDbPath = filepath.Join(lutrisLocalPath, "pga.db") RunScriptPath = filepath.Join(lutrisConfigPath, "games") CoverartPath = filepath.Join(lutrisCachePath, "coverart") BannerPath = filepath.Join(lutrisCachePath, "banners") IconPath = filepath.Join(home, ".local", "share", "icons", "hicolor", "128x128", "apps") )
View Source
var ( CoverartStd = imgStand{ Width: 264, Height: 352, } BannerStd = imgStand{ Width: 184, Height: 69, } IconStd = imgStand{ Width: 128, Height: 128, } )
View Source
var LutrisEnvName = lutrisEnv{
GameName: "GAME_NAME",
GameDirectory: "GAME_DIRECTORY",
}
Lutris 默认配置了一些环境变量,用于执行脚本
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.