sc2utils

package
v0.0.0-...-c1607c5 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RegionsMap = map[string]string{
	"1": "Americas",
	"2": "Europe",
	"3": "Asia",
}

RegionsMap translates integer strings into their respective

Functions

func EnumerateAccounts

func EnumerateAccounts(replaysRoot string) (accountIDs []string, err error)

EnumerateAccounts searches a given replaysRoot and returns a slice containing the accounts and toons which could be found, in the format "AccountID/ToonID" -- which is the same as their replay folder path.

func FindReplaysRoot

func FindReplaysRoot(scanRoot string) (replayRoots []string, err error)

FindReplaysRoot recursively searches a given scanRoot directory, returning all paths that seem like they could hold StarCraft II replays, organized by sub-directories containing "<accountID>/<toonID>/Replays/<gameType>"

Types

This section is empty.

Jump to

Keyboard shortcuts

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