Author: Tom <l3l_aze@yahoo.com>
- Path rootPath - The root of the Steam installation.
- Object user - Current user.
- Array libraries - A Path-type entry for each of the non-default Steam Library Folders of the Steam installation.
- Boolean appendToApps - Whether to append apps or destroy the old data each time a single steamapps folder is loaded.
- Boolean cacheEnabled - The current cache setting. Enabled = true, disabled = false.
- Path cacheFolder - Path to use for the cache folder.
- Object appinfo - Steam/appcache/appinfo.vdf.
- Object config - Steam/config/config.vdf.
- Object libraryfolders - Steam/steamapps/libraryfolders.vdf.
- Object localconfig - Steam/userdata/{user.accountId}.localconfig.vdf as an object.
- Object loginusers - Steam/config/loginusers.vdf as an object.
- Object packageinfo - Steam/appcache/packageinfo.vdf as an object.
- Object registry - Platform-specific: On Linux/Mac: registry.vdf as an object. On Windows: Registry as an object.
- Object shortcuts - Steam/userdata/{this.user.accountId}/config/shortcuts.vdf as an object.
- Object sharedconfig - Steam/userdata/{this.user.accountId}/7/remote/sharedconfig.vdf as an object.
- Array skins - Platform-specific skins folder entries (that are skins) as an array.
- Array steamapps - The appmanifest files of Steam/steamapps as an array.
Load a Steam file/path by name, including storing the data in it's place on this instance of SteamConfig.
Pre-processes arguments using the internal function prepareFileNames to ensure proper load order.
The internal function afterLoad is run on each file after it's been loaded to automatically
handle loading some data such as the locations of non-default Steam Library Folders in the file libraryfolers.vdf.
See: SteamPaths, prepareFileNames
- String|Array names - A string for a single file/path, or an array for a collection of files/paths or the special 'library' entries for non-default Steam Library Folders which will be an entry like
['library', {path}].
Attempt to detect the root installation path based on platform-specific default installation locations.
- Path - The detected path, or null if the default path is not found.
Attempt to detect the current user based on Registry.HKCU.Software.Valve.Steam.AutoLoginUser.
- Object - The detected user, or null if none is found.
Get the path to a named Steam file.
- String name - The name of a known Steam configuration file/path, as per SteamPaths
- Path - The path to the file., or null
Request the current user's list of owned apps from the internet.
- Boolean force - Force to get a new copy instead of loading cached copy.
Request a list of the popular tags from the internet.
- Boolean force - Force request to get a new copy instead of using a cached copy.
- Array - An Array of Strings that represents the popular tags on Steam.
Get a log of a sample of the data that exists.
Internal method to load app data from a library folder.
- Path library - The path to the library to load the appmanifest_###.acf files from.
- Array - The app data as an Array of Objects.
Internal method to load skin names.
- Path folder - The folder to get the skin names from.
- Array - The names of the skins as an Array of Strings.
Internal function to properly organize names array so that user-specific data is loaded last.
- Array names - The Array of String|Array entries that load was called with.
- Array - The names Array, after organization.
Internal function to get a user's account ID from their SteamID 64.
- String id64 - The SteamID64 of the user to calculte the Steam3:accountId of.
- String - The accountId of the user.
Internal function to do some special handling after loading specific files. So far it only handles "libraryfolders" by setting sc.libraries to the list of entries.
- SteamConfig sc - An instance of SteamConfig.
- String name - The name of the file that was loaded without the extension (as from SteamPaths.
A set of strings representing the Steam configuration files SteamConfig can handle.
- String all - All of the files. Handled specially by load
- String appinfo - appinfo => /appcache/appinfo.vdf
- String config - config => /config/config.vdf
- String libraryfolders - libraryfolders => /steamapps/libraryfolders.vdf
- String localconfig - localconfig => /userdata/{accountId}/config/localconfig.vdf
- String packageinfo - packageinfo => /appcache/packageinfo.vdf
- String registry - registry => ../registry.vdf on Linux, /registry.vdf on Mac or winreg on Windows.
- String shortcuts - shortcuts => /userdata/{accountId}/config/shortcuts.vdf
- String sharedconfig - sharedconfig => userdata/{accountId}/7/remote/sharedconfig.vdf
- String skins - skins => skins/ on Linux or Winows, /Steam.AppBundle/Steam/Contents/MacOS/skins on Mac.
- String steamapps - steamapps => /steamapps/
- String library - library => {aSteamLibraryFolder}/steamapps/