Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add three games AND Fix Shadows Over Loathing autodiscovery bug #1024

Merged
merged 4 commits into from
May 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/game_selection/sun-haven.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/game_selection/wildfrost.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion src/model/game/GameManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ export default class GameManager {
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.MELON_LOADER, ["pq"]),

new Game("Shadows Over Loathing", "ShadowsOverLoathing", "ShadowsOverLoathing",
"Shadows Over Loathing", ["Shadows Over Loathing.exe"], "ShadowsOverLoathing_Data",
path.join("Shadows Over Loathing", "Shadows Over Loathing"), ["Shadows Over Loathing.exe"], "ShadowsOverLoathing_Data",
"https://thunderstore.io/c/shadows-over-loathing/api/v1/package/", "https://github.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "1939160")], "shadows-over-loathing.jpg",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, ["sol"]),
Expand All @@ -430,6 +430,24 @@ export default class GameManager {
"https://thunderstore.io/c/west-of-loathing/api/v1/package/", "https://github.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "597220")], "west-of-loathing.jpg",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, ["wol"]),

new Game("Sun Haven", "SunHaven", "SunHaven",
"Sun Haven", ["Sun Haven.exe"], "SunHaven_Data",
"https://thunderstore.io/c/sun-haven/api/v1/package/", "https://github.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "1432860")], "sun-haven.jpg",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, ["sh"]),

new Game("Wildfrost", "Wildfrost", "Wildfrost",
"Wildfrost", ["Wildfrost.exe"], "Wildfrost_Data",
"https://thunderstore.io/c/wildfrost/api/v1/package/", "https://github.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "1811990")], "wildfrost.jpg",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, ["wfrst"]),

new Game("Shadows of Doubt", "ShadowsofDoubt", "ShadowsofDoubt",
"Shadows of Doubt", ["Shadows of Doubt.exe"], "ShadowsofDoubt_Data",
"https://thunderstore.io/c/shadows-of-doubt/api/v1/package/", "https://github.com/ebkr/r2modmanPlus/master/modExclusions.md",
[new StorePlatformMetadata(StorePlatform.STEAM, "986130")], "shadows-of-doubt.jpg",
GameSelectionDisplayMode.VISIBLE, GameInstanceType.GAME, PackageLoader.BEPINEX, ["sod"]),
];

static get activeGame(): Game {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ export default class InstallationRuleApplicator {
buildMelonLoaderRules("PatchQuest"),
buildBepInExRules("ShadowsOverLoathing"),
buildBepInExRules("WestofLoathing"),
buildBepInExRules("SunHaven"),
buildBepInExRules("Wildfrost"),
buildBepInExRules("ShadowsofDoubt"),
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ const VARIANTS = {
PatchQuest: [new ModLoaderPackageMapping("LavaGang-MelonLoader", "", PackageLoader.MELON_LOADER)],
ShadowsOverLoathing: [new ModLoaderPackageMapping("BepInEx-BepInExPack", "BepInExPack", PackageLoader.BEPINEX)],
WestofLoathing: [new ModLoaderPackageMapping("BepInEx-BepInExPack", "BepInExPack", PackageLoader.BEPINEX)],
SunHaven: [new ModLoaderPackageMapping("BepInEx-BepInExPack", "BepInExPack", PackageLoader.BEPINEX)],
Wildfrost: [new ModLoaderPackageMapping("BepInEx-BepInExPack_IL2CPP", "BepInExPack", PackageLoader.BEPINEX)],
ShadowsofDoubt: [new ModLoaderPackageMapping("BepInEx-BepInExPack_IL2CPP", "BepInExPack", PackageLoader.BEPINEX)],
};
// 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(56).stores(store);
this.version(57).stores(store);

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