Skip to content
This repository was archived by the owner on Jul 30, 2022. It is now read-only.

Commit a06b7bf

Browse files
Nirv-gitSlaynash
andauthored
Dependency Resolver (#12)
* Adds functionality for Broken mods folder Allows the updater to moves mods to and from the Broken mods folder (also made by VRCMelonAssistant) It will move any mods that are flagged as broken by the Remote API to the Broken folder as long as the local version is not newer then the remote version. (Allows modders to locally test new versions) Will move any mods that are in the Broken folder to Mods if the remote API says it is Approved and remote version is > local (Allows someone to manually move a mod to the broken folder if not flagged by the API) Has a MelonPref to disable the moving To/From Broken folder completely * Update VRCModUpdaterCore.cs Quick Fix to make sure dir exists and apparently didn't submit version with MelonPref * Dependency Resolver Added option to add missing required and optional Dependencies. Will only count those found in the RemoteAPI Retains previous behavior where if the mod dependency is in the broken folder and version number is the same as RemoteAPI, it will not auto move. Co-authored-by: Hugo "Slaynash" Flores <[email protected]>
1 parent 34a253c commit a06b7bf

File tree

2 files changed

+197
-107
lines changed

2 files changed

+197
-107
lines changed

Core/ModDetail.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ public class ModDetail
88
public string downloadUrl;
99
public string hash;
1010
public int approvalStatus;
11+
public string[] dependencies = new string[0];
12+
public string[] optDependencies = new string[0];
1113

1214
public ModDetail(string name, string version, string filepath)
1315
{
@@ -16,6 +18,15 @@ public ModDetail(string name, string version, string filepath)
1618
this.filepath = filepath;
1719
}
1820

21+
public ModDetail(string name, string version, string filepath, string[] dependencies, string[] optDependencies)
22+
{
23+
this.name = name;
24+
this.version = version;
25+
this.filepath = filepath;
26+
this.dependencies = dependencies;
27+
this.optDependencies = optDependencies;
28+
}
29+
1930
public ModDetail(string name, string version, string downloadUrl, string hash)
2031
{
2132
this.name = name;

0 commit comments

Comments
 (0)