-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathFilePacker.cs
More file actions
28 lines (27 loc) · 797 Bytes
/
FilePacker.cs
File metadata and controls
28 lines (27 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System;
using System.IO;
using Serilog;
using System.Diagnostics;
using ModShardPackerReference;
namespace ModShardLauncher
{
public static class UtilsPacker
{
/// <summary>
/// Pack a mod located in <paramref name="path"/> using the packing method from <see cref="ModShardPackerReference"/>.
/// </summary>
/// <param name="path"></param>
/// <returns></returns>
public static void Pack(string path)
{
FilePacker.Pack(
null,
path,
ModLoader.ModPath,
path,
Main.Instance.mslVersion,
new Type[2] {typeof(ModShardLauncher.Mods.Mod), typeof(UndertaleModLib.Models.UndertaleCode)}
);
}
}
}