Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Mod Development

Trevor edited this page Sep 2, 2023 · 3 revisions

The MelonWiki is mostly accurate, please use that for reference.

However, do not use .NET 6 for mods. Lemon is still based on MelonLoader 0.5.7, which uses .NET Framework 4.7.2 for Il2Cpp mods.

A few extra things, to check if the user is running Lemon you can use either

  • MelonUtils.CurrentPlatform == (MelonPlatformAttribute.CompatiblePlatforms)3 if you're using base MelonLoader assemblies
  • MelonUtils.CurrentPlatform == MelonPlatformAttribute.CompatiblePlatforms.ANDROID if you're using LemonLoader assemblies

Lemon 0.2.0 has implemented the NativeLibrary helper class from MelonLoader, meaning you can load custom native libraries that were not packed into the game's APK. See the NativeLibrary class for more information.