blob: 055a79f960c55de73d32a68e95fcbdcc6ca29fd7 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
using StardewModdingAPI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace StardewInjector
{
public class StardewInjector : Mod
{
public override string Name
{
get { return "Stardew Injector"; }
}
public override string Authour
{
get { return "Zoryn Aaron"; }
}
public override string Version
{
get { return "1.0"; }
}
public override string Description
{
get { return "Pulled from https://github.com/kevinmurphy678/Stardew_Injector and converted to a mod."; }
}
public static Stardew_Hooker hooker { get; set; }
public override void Entry(params object[] objects)
{
if (objects.Length <= 0 || (objects.Length > 0 && objects[0].AsBool() == false))
{
hooker = new Stardew_Hooker();
hooker.Initialize();
hooker.ApplyHooks();
hooker.Finalize();
Program.LogInfo("INJECTOR ENTERED");
}
else if (objects.Length > 0 && objects[0].AsBool() == true)
{
Program.LogInfo("INJECTOR LAUNCHING");
hooker.Run();
}
else
{
Program.LogError("INVALID PARAMETERS FOR INJECTOR");
}
}
}
}
|