Skip to content

Commit

Permalink
Merge pull request ebkr#1094 from thunderstore-io/new-games
Browse files Browse the repository at this point in the history
Add support for 2 new games
  • Loading branch information
MythicManiac authored Oct 22, 2023
2 parents 17f8a8f + d354dfa commit bb9f207
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
Binary file added src/assets/images/game_selection/Dredge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/model/game/GameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,18 @@ export default class GameManager {
"https://thunderstore.io/c/erenshor/api/v1/package/", "https://raw.githubusercontent.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "2382520")], "Erenshor.jpg",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, []),

new Game("Last Train Outta' Wormtown", "LastTrainOuttaWormtown", "LastTrainOuttaWormtown",
"Last Train Outta' Wormtown", ["Last Train Out Of WormTown.exe"], "Last Train Out Of WormTown_Data",
"https://thunderstore.io/c/last-train-outta-wormtown/api/v1/package/", "https://raw.githubusercontent.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "2318480")], "LastTrainOuttaWormtown.png",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, []),

new Game("DREDGE", "Dredge", "Dredge",
"DREDGE", ["DREDGE.exe"], "DREDGE_Data",
"https://thunderstore.io/c/dredge/api/v1/package/", "https://raw.githubusercontent.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "1562430")], "Dredge.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 @@ -112,6 +112,8 @@ export default class InstallationRuleApplicator {
buildBepInExRules("Sunkenland"),
buildBepInExRules("Atomicrops"),
buildBepInExRules("Erenshor"),
buildBepInExRules("LastTrainOuttaWormtown"),
buildBepInExRules("Dredge"),
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const MODLOADER_PACKAGES = [
new ModLoaderPackageMapping("BepInEx-BepInExPack_Thronefall", "BepInExPack", PackageLoader.BEPINEX),
new ModLoaderPackageMapping("BepInEx-BepInExPack_WizardWithAGun", "BepInExPack", PackageLoader.BEPINEX),
new ModLoaderPackageMapping("SunkenlandModding-BepInExPack_Sunkenland", "BepInExPack_Sunkenland", PackageLoader.BEPINEX),
new ModLoaderPackageMapping("BepInEx_Wormtown-BepInExPack", "BepInExPack", PackageLoader.BEPINEX),
];


Expand Down Expand Up @@ -151,6 +152,8 @@ const VARIANTS = {
Sunkenland: MODLOADER_PACKAGES,
Atomicrops: MODLOADER_PACKAGES,
Erenshor: MODLOADER_PACKAGES,
LastTrainOuttaWormtown: MODLOADER_PACKAGES,
Dredge: 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(62).stores(store);
this.version(63).stores(store);

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

0 comments on commit bb9f207

Please sign in to comment.