Skip to content

Commit

Permalink
Add Castle Story
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksamies committed Feb 3, 2024
1 parent ee1019c commit b99b1ba
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
Binary file added src/assets/images/game_selection/CastleStory.png
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 @@ -562,6 +562,12 @@ export default class GameManager {
"https://thunderstore.io/c/sailwind/api/v1/package/", "https://raw.githubusercontent.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "1764530")], "Sailwind.png",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, []),

new Game("Castle Story", "CastleStory", "CastleStory",
"Castle Story", ["Castle Story.exe"], "CastleStory_Data",
"https://thunderstore.io/c/castle-story/api/v1/package/", "https://raw.githubusercontent.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM_DIRECT, "227860")], "CastleStory.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 @@ -119,6 +119,7 @@ export default class InstallationRuleApplicator {
buildBepInExRules("MeepleStation"),
buildBepInExRules("VoidCrew"),
buildBepInExRules("Sailwind"),
buildBepInExRules("CastleStory"),
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ const VARIANTS = {
MeepleStation: MODLOADER_PACKAGES,
VoidCrew: MODLOADER_PACKAGES,
Sailwind: MODLOADER_PACKAGES,
CastleStory: 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(65).stores(store);
this.version(66).stores(store);

this.activeGame = game;
this.global = this.table("value");
Expand Down

0 comments on commit b99b1ba

Please sign in to comment.