Skip to content

Commit

Permalink
Merge pull request ebkr#1282 from thunderstore-io/content-warning
Browse files Browse the repository at this point in the history
Add Content Warning
  • Loading branch information
anttimaki authored Apr 2, 2024
2 parents 6e8a583 + 9a1b8e3 commit 0eb2380
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/model/game/GameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default class InstallationRuleApplicator {
buildBepInExRules("VoidCrew"),
buildBepInExRules("Sailwind"),
buildBepInExRules("Plasma"),
buildBepInExRules("ContentWarning"),
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/r2mm/manager/SettingsDexieStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 0eb2380

Please sign in to comment.