-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCompatibility.cs
More file actions
100 lines (86 loc) · 4.6 KB
/
Compatibility.cs
File metadata and controls
100 lines (86 loc) · 4.6 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
using BepInEx.Bootstrap;
namespace ButteryFixes
{
internal class Compatibility
{
internal const string GUID_LETHAL_FIXES = "uk.1a3.lethalfixes";
internal const string GUID_GENERAL_IMPROVEMENTS = "ShaosilGaming.GeneralImprovements";
internal const string GUID_BETTER_SPRAY_PAINT = "taffyko.BetterSprayPaint";
internal const string GUID_EVERYTHING_CAN_DIE = "nwnt.EverythingCanDie";
internal const string GUID_MORE_COMPANY = "me.swipez.melonloader.morecompany";
internal const string GUID_TOUCHSCREEN = "me.pm.TheDeadSnake";
internal const string GUID_REBALANCED_MOONS = "dopadream.lethalcompany.rebalancedmoons";
internal const string GUID_CRUISER_ADDITIONS = "4902.Cruiser_Additions";
internal const string GUID_TERMINAL_STUFF = "darmuh.TerminalStuff";
internal const string GUID_LOBBY_COMPATIBILITY = "BMX.LobbyCompatibility";
internal const string GUID_OPEN_BODY_CAMS = "Zaggy1024.OpenBodyCams";
internal const string GUID_NO_LOST_SIGNAL = "Tomatobird.NoLostSignal";
internal const string GUID_DROP_SHIP_DELIVERY_CAP_MODIFIER = "com.github.Sylkadi.DropShipDeliveryCapModifier";
internal const string GUID_CRUISER_IMPROVED = "DiggC.CruiserImproved";
internal static bool INSTALLED_GENERAL_IMPROVEMENTS, INSTALLED_MORE_COMPANY, INSTALLED_EVERYTHING_CAN_DIE, INSTALLED_REBALANCED_MOONS;
internal static bool DISABLE_SPRAY_PAINT_PATCHES, DISABLE_INTERACT_FIX, DISABLE_PRICE_TEXT_FITTING, DISABLE_ROTATION_PATCH, DISABLE_SIGNAL_PATCH, DISABLE_PURCHASE_CAP_PATCH, DISABLE_SCAN_PATCH;
internal static void Init()
{
if (Chainloader.PluginInfos.ContainsKey(GUID_GENERAL_IMPROVEMENTS))
{
INSTALLED_GENERAL_IMPROVEMENTS = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - GeneralImprovements detected");
}
if (Chainloader.PluginInfos.ContainsKey(GUID_BETTER_SPRAY_PAINT))
{
DISABLE_SPRAY_PAINT_PATCHES = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - Spray paint patches will be disabled");
}
if (Chainloader.PluginInfos.ContainsKey(GUID_EVERYTHING_CAN_DIE))
{
INSTALLED_EVERYTHING_CAN_DIE = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - Everything Can Die detected");
}
if (Chainloader.PluginInfos.ContainsKey(GUID_MORE_COMPANY))
{
INSTALLED_MORE_COMPANY = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - More Company detected");
}
if (Chainloader.PluginInfos.ContainsKey(GUID_TOUCHSCREEN))
{
DISABLE_INTERACT_FIX = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - Touchscreen detected");
}
if (Chainloader.PluginInfos.ContainsKey(GUID_REBALANCED_MOONS))
{
INSTALLED_REBALANCED_MOONS = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - Rebalanced Moons detected");
}
if (INSTALLED_GENERAL_IMPROVEMENTS || Chainloader.PluginInfos.ContainsKey(GUID_TERMINAL_STUFF))
{
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - Price text patch will be disabled");
DISABLE_PRICE_TEXT_FITTING = true;
}
if (Chainloader.PluginInfos.ContainsKey(GUID_LOBBY_COMPATIBILITY))
{
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - Lobby Compatibility detected");
LobbyCompatibility.Init();
}
if (Chainloader.PluginInfos.ContainsKey(GUID_OPEN_BODY_CAMS))
{
DISABLE_ROTATION_PATCH = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - OpenBodyCams detected");
}
if (Chainloader.PluginInfos.ContainsKey(GUID_NO_LOST_SIGNAL))
{
DISABLE_SIGNAL_PATCH = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - NoLostSignal detected");
}
if (INSTALLED_GENERAL_IMPROVEMENTS || Chainloader.PluginInfos.ContainsKey(GUID_DROP_SHIP_DELIVERY_CAP_MODIFIER))
{
DISABLE_PURCHASE_CAP_PATCH = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - Purchase cap patch (x12) will be disabled");
}
if (Chainloader.PluginInfos.ContainsKey(GUID_CRUISER_IMPROVED))
{
DISABLE_SCAN_PATCH = true;
Plugin.Logger.LogInfo("CROSS-COMPATIBILITY - CruiserImproved detected");
}
}
}
}