Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 85cb95f

Browse files
committed
switch to new loadson modentry
1 parent 58f498b commit 85cb95f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Main.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public override void OnEnable()
5454
foreach (var mod in mods)
5555
{
5656
string guid = (string)modEntry.GetField("ModGUID").GetValue(mod);
57+
string file = (string)modEntry.GetField("FilePath").GetValue(mod);
5758
if (repository.ContainsKey(guid))
5859
{
5960
Loadson.Console.Log("Checking " + guid);
@@ -86,7 +87,7 @@ public override void OnEnable()
8687
// update mod
8788
try
8889
{
89-
File.WriteAllBytes(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Loadson", "Mods", guid + ".klm"), wc.DownloadData(repository[guid].Item2));
90+
File.WriteAllBytes(file, wc.DownloadData(repository[guid].Item2));
9091
updated.Add(guid);
9192
Loadson.Console.Log("<i> </i><color=green>Updated.</color>");
9293
}

metadata.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
displayname=Loadson Mod Repository
22
author=devilExE
3-
description=Automatically update all installed mods which are tracked by this repository\n\n<LMR>v1</LMR>
3+
description=Automatically update all installed mods which are tracked by this repository\n\n<LMR>v1.1</LMR>
44
deps=

0 commit comments

Comments
 (0)