Documentation
¶
Index ¶
- Constants
- Variables
- func AdjustFoldersInPath(relative_patch_filepath string, freelancer_folder Filesystem) string
- func DownloadFile(filepath string, url string) (err error)
- func RunAutopatcher(workdir string, use_cache bool) error
- func Unzip(src, dest string) error
- func WriteToFile(path string, content []byte)
- type BadassRoot
- type File
- type Filesystem
- type LauncherConfigData
- type Patch
- type PatchHash
- type PatcherData
- type RequestResp
Constants ¶
View Source
const AutopatherFilename = "autopatcher.latest_patch.json"
View Source
const DiscoveryUrl = "https://patch.discoverygc.com/"
View Source
const DiscoveryUrlCache = "https://disco-api.dd84ai.com/"
Variables ¶
View Source
var Log *typelog.Logger = typelog.NewLogger( "disco_patch", typelog.WithLogLevel(typelog.LEVEL_INFO), )
View Source
var PATH_SEPARATOR = ""
Functions ¶
func AdjustFoldersInPath ¶
func AdjustFoldersInPath(relative_patch_filepath string, freelancer_folder Filesystem) string
AdjustFoldersInPatch replaces folder names in path to relevant case sensitive folders And creates them if they don't exist
func DownloadFile ¶
func RunAutopatcher ¶
func Unzip ¶
Unzip is copy paste from https://stackoverflow.com/questions/20357223/easy-way-to-unzip-file https://stackoverflow.com/a/24792688
func WriteToFile ¶
Types ¶
type BadassRoot ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
func (File) GetLowerPath ¶
func (File) GetRelPathTo ¶
type Filesystem ¶
type Filesystem struct {
Files []File
LowerMapFiles map[string]File
Folders []File
LowerMapFolders map[string]File
}
func ScanCaseInsensitiveFS ¶
func ScanCaseInsensitiveFS(fs_path string) Filesystem
type LauncherConfigData ¶
func ReadLauncherConfig ¶
func ReadLauncherConfig() (LauncherConfigData, []string)
type PatcherData ¶
type RequestResp ¶
func Request ¶
func Request(url string) (RequestResp, error)
Click to show internal directories.
Click to hide internal directories.