Table of Contents

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

string

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

string

Locales

Gets the locales for which the base game has string tables (such as ENG_US)

public IReadOnlyCollection<string> Locales { get; }

Property Value

IReadOnlyCollection<string>

Packs

Gets the base game (always first) and the packs that are installed

public IReadOnlyList<GameInstallationPack> Packs { get; }

Property Value

IReadOnlyList<GameInstallationPack>

Path

Gets the path with which the installation was opened

public string Path { get; }

Property Value

string

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

IReadOnlyList<GameInstallationPack>

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

IReadOnlyList<string>

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

path string

Returns

GameInstallation

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