mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 07:28:45 -07:00
patcher: install mod to <root>/Mods, not <root>/MelonLoader/Mods
MelonLoader 0.6.x scans <install root>\Mods\ for plugin DLLs and ignores anything under MelonLoader\Mods\. Our default plugin_dest was MelonLoader/Mods, so DorkNet.ClientMod.dll landed somewhere MelonLoader never looked at — Player.log showed '0 Mods loaded.' and Rec Room booted unpatched, hitting the real rec.net version check which returns UpdateRequired. Changed ClientPatcher's default + the manifest doc to 'Mods'. Per-version branches also need 'plugin_dest' = 'Mods' in their build-patcher-zip.ps1 manifest (separate commits).
This commit is contained in:
@@ -21,7 +21,7 @@ namespace DorkNet.Launcher.Backend;
|
|||||||
/// "$schema_version": 1,
|
/// "$schema_version": 1,
|
||||||
/// "loader_archive": "MelonLoader.zip", // optional — unzipped into <recroom-root>\
|
/// "loader_archive": "MelonLoader.zip", // optional — unzipped into <recroom-root>\
|
||||||
/// "plugin_dll": "DorkNet.ClientMod.dll", // required — copied to plugin_dest
|
/// "plugin_dll": "DorkNet.ClientMod.dll", // required — copied to plugin_dest
|
||||||
/// "plugin_dest": "MelonLoader/Mods", // optional — defaults to "MelonLoader/Mods"
|
/// "plugin_dest": "Mods", // optional — defaults to "Mods" (top-level, MelonLoader scans it)
|
||||||
/// "config_template": "dorknet-clientmod.json.template", // optional — rendered with {HOST}/{PHOTON_APPID}/{PHOTON_VOICE_APPID}
|
/// "config_template": "dorknet-clientmod.json.template", // optional — rendered with {HOST}/{PHOTON_APPID}/{PHOTON_VOICE_APPID}
|
||||||
/// "config_dest": "MelonLoader/UserData/dorknet-clientmod.json", // optional — defaults shown
|
/// "config_dest": "MelonLoader/UserData/dorknet-clientmod.json", // optional — defaults shown
|
||||||
/// "old_plugin_paths": ["BepInEx/plugins/DorkNet.ClientPatch.dll"], // optional — deleted before install
|
/// "old_plugin_paths": ["BepInEx/plugins/DorkNet.ClientPatch.dll"], // optional — deleted before install
|
||||||
@@ -39,7 +39,11 @@ namespace DorkNet.Launcher.Backend;
|
|||||||
/// passes through unchanged.</para></summary>
|
/// passes through unchanged.</para></summary>
|
||||||
public sealed class ClientPatcher
|
public sealed class ClientPatcher
|
||||||
{
|
{
|
||||||
private const string DefaultPluginDest = "MelonLoader/Mods";
|
// MelonLoader 0.6.x scans <install root>\Mods\ for plugin DLLs —
|
||||||
|
// NOT <install root>\MelonLoader\Mods\. UserData is correctly under
|
||||||
|
// <install root>\MelonLoader\UserData\ though, since that's what
|
||||||
|
// Mod.cs hardcodes when reading its config.
|
||||||
|
private const string DefaultPluginDest = "Mods";
|
||||||
private const string DefaultConfigDest = "MelonLoader/UserData/dorknet-clientmod.json";
|
private const string DefaultConfigDest = "MelonLoader/UserData/dorknet-clientmod.json";
|
||||||
|
|
||||||
public Task<PatchResult> ApplyAsync(
|
public Task<PatchResult> ApplyAsync(
|
||||||
|
|||||||
Reference in New Issue
Block a user