Skip to content

Commit

Permalink
MelonLoader Improvements (#1539)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebkr authored Nov 11, 2024
1 parent 265781c commit 78a0402
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const VARIANTS = {
Aloft: MODLOADER_PACKAGES,
COTL: MODLOADER_PACKAGES,
ChronoArk: MODLOADER_PACKAGES,
BONELAB: [new ModLoaderPackageMapping("LavaGang-MelonLoader", "", PackageLoader.MELON_LOADER, new VersionNumber("0.5.7"))],
BONELAB: [new ModLoaderPackageMapping("LavaGang-MelonLoader", "", PackageLoader.MELON_LOADER)],
TromboneChamp: MODLOADER_PACKAGES,
RogueGenesia: MODLOADER_PACKAGES,
AcrossTheObelisk: MODLOADER_PACKAGES,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ export default class MelonLoaderGameInstructions extends GameInstructionGenerato

public async generate(game: Game, profile: Profile): Promise<GameInstruction> {
let moddedParameters = `--melonloader.basedir "${DynamicGameInstruction.PROFILE_DIRECTORY}"`;
if (!await FsProvider.instance.exists(profile.joinToProfilePath('MelonLoader', 'Managed', 'Assembly-CSharp.dll'))) {
console.log("Regenerating AGF")
moddedParameters += " --melonloader.agfregenerate"

const mlZeroPointFiveAssemblyExists = await FsProvider.instance.exists(profile.joinToProfilePath('MelonLoader', 'Managed', 'Assembly-CSharp.dll'));
const mlZeroPointSixAssemblyExists = await FsProvider.instance.exists(profile.joinToProfilePath('MelonLoader', 'Il2CppAssemblies', 'Assembly-CSharp.dll'));

if (!mlZeroPointFiveAssemblyExists && !mlZeroPointSixAssemblyExists) {
moddedParameters += ' --melonloader.agfregenerate';
}
return {
moddedParameters: moddedParameters,
Expand Down

0 comments on commit 78a0402

Please sign in to comment.