diff --git a/src/assets/images/game_selection/ContentWarning.png b/src/assets/images/game_selection/ContentWarning.png new file mode 100644 index 000000000..8ba40ba62 Binary files /dev/null and b/src/assets/images/game_selection/ContentWarning.png differ diff --git a/src/model/game/GameManager.ts b/src/model/game/GameManager.ts index 9c4894c8a..542ebe747 100644 --- a/src/model/game/GameManager.ts +++ b/src/model/game/GameManager.ts @@ -588,6 +588,12 @@ export default class GameManager { "https://thunderstore.io/c/plasma/api/v1/package/", EXCLUSIONS, [new StorePlatformMetadata(StorePlatform.STEAM, "1409160")], "Plasma.jpg", GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, []), + + new Game("Content Warning", "ContentWarning", "ContentWarning", + "Content Warning", ["Content Warning.exe"], "ContentWarning_Data", + "https://thunderstore.io/c/content-warning/api/v1/package/", EXCLUSIONS, + [new StorePlatformMetadata(StorePlatform.STEAM, "2881650")], "ContentWarning.png", + GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, []), ]; static get activeGame(): Game { diff --git a/src/r2mm/installing/default_installation_rules/InstallationRuleApplicator.ts b/src/r2mm/installing/default_installation_rules/InstallationRuleApplicator.ts index 9b6e0d155..eb05bec75 100644 --- a/src/r2mm/installing/default_installation_rules/InstallationRuleApplicator.ts +++ b/src/r2mm/installing/default_installation_rules/InstallationRuleApplicator.ts @@ -120,6 +120,7 @@ export default class InstallationRuleApplicator { buildBepInExRules("VoidCrew"), buildBepInExRules("Sailwind"), buildBepInExRules("Plasma"), + buildBepInExRules("ContentWarning"), ] } } diff --git a/src/r2mm/installing/profile_installers/ModLoaderVariantRecord.ts b/src/r2mm/installing/profile_installers/ModLoaderVariantRecord.ts index 24af36a5d..e399b3274 100644 --- a/src/r2mm/installing/profile_installers/ModLoaderVariantRecord.ts +++ b/src/r2mm/installing/profile_installers/ModLoaderVariantRecord.ts @@ -164,6 +164,7 @@ const VARIANTS = { VotV: MODLOADER_PACKAGES, Palworld: MODLOADER_PACKAGES, Plasma: MODLOADER_PACKAGES, + ContentWarning: MODLOADER_PACKAGES, }; // Exported separately from the definition in order to preserve the key names in the type definition. // Otherwise this would become [key: string] and we couldn't use the game names for type hinting elsewhere. diff --git a/src/r2mm/manager/SettingsDexieStore.ts b/src/r2mm/manager/SettingsDexieStore.ts index a5581c8dc..2c871c81f 100644 --- a/src/r2mm/manager/SettingsDexieStore.ts +++ b/src/r2mm/manager/SettingsDexieStore.ts @@ -34,7 +34,7 @@ export default class SettingsDexieStore extends Dexie { // Add all games to store. Borked v2-3 locally // Increment per game or change to settings. - this.version(67).stores(store); + this.version(68).stores(store); this.activeGame = game; this.global = this.table("value");