Skip to content
Closed
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
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<h2 align="center">Others</h2>
<h3 align="center">
Expand Down
5 changes: 3 additions & 2 deletions constants/Paths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ public static class Paths
/// <summary>
/// Path to game native Mods folder
/// </summary>
public static readonly string NativeModsPath = Combine(StreamingAssetsPath, "mods");
public static readonly string NativeModsPath = Config.isAndroid ? Combine(PersistentDataPath, "mods") : Combine(StreamingAssetsPath, "mods");

/// <summary>
/// Path to game native Managed folder
/// </summary>
public static readonly string ManagedPath = Others.is_editor
? Combine(StreamingAssetsPath, "..", ".Managed")
: Combine(StreamingAssetsPath, "..", "Managed");
: Config.isAndroid ? Combine(PersistentDataPath, "mono") :Combine(StreamingAssetsPath, "..", "Managed");

/// <summary>
/// Path to folder contains NML's cache
Expand Down Expand Up @@ -174,6 +174,7 @@ static Paths()
RuntimePlatform.WindowsPlayer => Combine(StreamingAssetsPath, "..", ".."),
RuntimePlatform.LinuxPlayer => Combine(StreamingAssetsPath, "..", ".."),
RuntimePlatform.OSXPlayer => Combine(StreamingAssetsPath, "..", "..", "..", "..", ".."),
RuntimePlatform.Android => Combine(PersistentDataPath, ".."),
_ => Combine(StreamingAssetsPath, "..", "..")
};

Expand Down
2 changes: 1 addition & 1 deletion resources/commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
72e51e4b9940adeed32a55d2cc2231611e36fdc4
46f32fe322ec03f2630ef8179d8b9b78a60191d1
4 changes: 4 additions & 0 deletions services/ExternalModInstallService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ internal static class ExternalModInstallService
public static async void CheckExternalModInstall()
{
var args = new List<string>(Environment.GetCommandLineArgs());
if (args.Count == 0)
{
return;
}
args.RemoveAt(0);
foreach (var arg in args) LogService.LogInfo(arg);

Expand Down
Loading