diff --git a/README.md b/README.md index 26616fe0..749771b6 100644 --- a/README.md +++ b/README.md @@ -52,11 +52,9 @@ It is recommended to subscribe to the NML item on the Steam Workshop to receive ### Android Installation -Driven by the [Android Version Repository](https://github.com/MelvinShwuaner/ModLoader/) - -1. Download the latest version of lemon loader https://gamebanana.com/mods/656702 -follow instructions there on how to install. -2. Move neomodloader_mobile.dll to MelonLoader/com.mkarpenko.worldbox/Mods +1. Download and install the mono version of worldbox +2. Move NeoModLoader.dll to Android/data/com.mkarpenko.worldbox/mods +3. enable experimental mode and start the game

Others

diff --git a/constants/Paths.cs b/constants/Paths.cs index 433fd64e..73e1365c 100644 --- a/constants/Paths.cs +++ b/constants/Paths.cs @@ -26,14 +26,14 @@ public static class Paths /// /// Path to game native Mods folder /// - public static readonly string NativeModsPath = Combine(StreamingAssetsPath, "mods"); + public static readonly string NativeModsPath = Config.isAndroid ? Combine(PersistentDataPath, "mods") : Combine(StreamingAssetsPath, "mods"); /// /// Path to game native Managed folder /// public static readonly string ManagedPath = Others.is_editor ? Combine(StreamingAssetsPath, "..", ".Managed") - : Combine(StreamingAssetsPath, "..", "Managed"); + : Config.isAndroid ? Combine(PersistentDataPath, "mono") :Combine(StreamingAssetsPath, "..", "Managed"); /// /// Path to folder contains NML's cache @@ -174,6 +174,7 @@ static Paths() RuntimePlatform.WindowsPlayer => Combine(StreamingAssetsPath, "..", ".."), RuntimePlatform.LinuxPlayer => Combine(StreamingAssetsPath, "..", ".."), RuntimePlatform.OSXPlayer => Combine(StreamingAssetsPath, "..", "..", "..", "..", ".."), + RuntimePlatform.Android => Combine(PersistentDataPath, ".."), _ => Combine(StreamingAssetsPath, "..", "..") }; diff --git a/resources/commit b/resources/commit index 3dc87585..f9d7ae09 100644 --- a/resources/commit +++ b/resources/commit @@ -1 +1 @@ -72e51e4b9940adeed32a55d2cc2231611e36fdc4 \ No newline at end of file +46f32fe322ec03f2630ef8179d8b9b78a60191d1 diff --git a/services/ExternalModInstallService.cs b/services/ExternalModInstallService.cs index 21acc3b8..84b4b191 100644 --- a/services/ExternalModInstallService.cs +++ b/services/ExternalModInstallService.cs @@ -7,6 +7,10 @@ internal static class ExternalModInstallService public static async void CheckExternalModInstall() { var args = new List(Environment.GetCommandLineArgs()); + if (args.Count == 0) + { + return; + } args.RemoveAt(0); foreach (var arg in args) LogService.LogInfo(arg);