Class GameInstallation
- Namespace
- LlamaLogic.TuningArchive
- Assembly
- LlamaLogic.TuningArchive.dll
Represents an installation of The Sims 4 from which a TuningArchiveFile can capture a snapshot (🔒)
public sealed class GameInstallation
- Inheritance
-
GameInstallation
- Inherited Members
Properties
ContentRoot
Gets the folder containing the installation's Data folder
public string ContentRoot { get; }
Property Value
GameVersion
Gets the version of the game, as the installation's configuration states it, if it could be found
public string? GameVersion { get; }
Property Value
Locales
Gets the locales for which the base game has string tables (such as ENG_US)
public IReadOnlyCollection<string> Locales { get; }
Property Value
Packs
Gets the base game (always first) and the packs that are installed
public IReadOnlyList<GameInstallationPack> Packs { get; }
Property Value
Path
Gets the path with which the installation was opened
public string Path { get; }
Property Value
UninstalledPacks
Gets the packs that are not installed but have patches in the installation's Delta folder, which the game does not load
public IReadOnlyList<GameInstallationPack> UninstalledPacks { get; }
Property Value
Methods
FindInstallations()
Finds the installations of The Sims 4 in the places the game's installers usually put it and, on macOS, wherever Spotlight finds its app bundle
public static IReadOnlyList<string> FindInstallations()
Returns
Open(string)
Opens the installation of The Sims 4 at the specified path, which may be the installation folder, the app bundle on macOS, or the folder containing it
public static GameInstallation Open(string path)
Parameters
pathstring
Returns
Remarks
On macOS, packs are read from the The Sims 4 Packs folder beside the app bundle, where the game installs them
Exceptions
- DirectoryNotFoundException
No installation of The Sims 4 was found at
path