Skip to content

Commit

Permalink
Merge pull request ebkr#1572 from ebkr/melonloader-fix
Browse files Browse the repository at this point in the history
Fix installation of MelonLoader
  • Loading branch information
anttimaki authored Dec 2, 2024
2 parents a18f674 + e93bcb8 commit ca2dc65
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/r2mm/installing/profile_installers/ModLoaderVariantRecord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const MODLOADER_PACKAGES = [
new ModLoaderPackageMapping("NotNet-GDWeave", "", PackageLoader.GDWEAVE),
];

const DEFAULT_MELONLOADER_MAPPING = [new ModLoaderPackageMapping("LavaGang-MelonLoader", "", PackageLoader.MELON_LOADER)];

/**
* While this object is a bit silly given that all the keys are pointing to the
Expand Down Expand Up @@ -113,11 +114,11 @@ const VARIANTS = {
Titanfall2: MODLOADER_PACKAGES,
Peglin: MODLOADER_PACKAGES,
VRising: MODLOADER_PACKAGES,
HardBullet: MODLOADER_PACKAGES,
HardBullet: DEFAULT_MELONLOADER_MAPPING,
GreenHellVR: MODLOADER_PACKAGES,
"20MinutesTillDawn": MODLOADER_PACKAGES,
VTOL_VR: MODLOADER_PACKAGES,
BackpackHero: MODLOADER_PACKAGES,
BackpackHero: DEFAULT_MELONLOADER_MAPPING,
Stacklands: MODLOADER_PACKAGES,
ETG: MODLOADER_PACKAGES,
Ravenfield: MODLOADER_PACKAGES,
Expand All @@ -133,15 +134,15 @@ const VARIANTS = {
AtrioTheDarkWild: MODLOADER_PACKAGES,
AncientDungeonVR: MODLOADER_PACKAGES,
Brotato: MODLOADER_PACKAGES,
RUMBLE: MODLOADER_PACKAGES,
RUMBLE: DEFAULT_MELONLOADER_MAPPING,
DomeKeeper: MODLOADER_PACKAGES,
SkulTheHeroSlayer: MODLOADER_PACKAGES,
SonsOfTheForest: MODLOADER_PACKAGES,
TheOuroborosKing: MODLOADER_PACKAGES,
WrestlingEmpire: MODLOADER_PACKAGES,
Receiver2: MODLOADER_PACKAGES,
ThePlanetCrafter: MODLOADER_PACKAGES,
PatchQuest: MODLOADER_PACKAGES,
PatchQuest: DEFAULT_MELONLOADER_MAPPING,
ShadowsOverLoathing: MODLOADER_PACKAGES,
WestofLoathing: MODLOADER_PACKAGES,
SunHaven: MODLOADER_PACKAGES,
Expand Down Expand Up @@ -219,9 +220,7 @@ export function getModLoaderPackageNames() {
const names = MODLOADER_PACKAGES.map((mapping) => mapping.packageName);

// Hard code MelonLoader to avoid having to iterate over MODLOADER_PACKAGES
// for each game separately. Hopefully we'll get rid of this once ML v0.6.6
// is released, as it's supposed to fix a bug that forces some games to
// currently use the older versions.
// for each game separately.
names.push("LavaGang-MelonLoader");
return names;
}

0 comments on commit ca2dc65

Please sign in to comment.