Skip to content

Commit 8502928

Browse files
committed
Harmony patch tweak
1 parent 9105496 commit 8502928

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

SkipSplashScreenProject/SkipSplashScreenPlugin.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ namespace SkipSplashScreen;
99

1010
[BepInPlugin(MyPluginInfo.PLUGIN_GUID, MyPluginInfo.PLUGIN_NAME, MyPluginInfo.PLUGIN_VERSION)]
1111
[BepInDependency(SpaceWarpPlugin.ModGuid, SpaceWarpPlugin.ModVer)]
12-
[HarmonyPatch(typeof(SequentialFlow))]
1312
public class SkipSplashScreenPlugin : BaseSpaceWarpPlugin
1413
{
1514
// These are useful in case some other mod wants to add a dependency to this one
@@ -19,7 +18,7 @@ public class SkipSplashScreenPlugin : BaseSpaceWarpPlugin
1918

2019
public void Start()
2120
{
22-
Harmony.CreateAndPatchAll(typeof(SkipSplashScreenPlugin).Assembly);
21+
Harmony.CreateAndPatchAll(typeof(SkipSplashScreenPlugin));
2322
}
2423

2524
public void Update()
@@ -31,10 +30,9 @@ public void Update()
3130

3231
if (GameManager.Instance.Game.GlobalGameState.GetState() == GameState.MainMenu)
3332
Destroy(this);
34-
}
33+
}
3534

36-
[HarmonyPatch("AddAction")]
37-
[HarmonyPrefix]
35+
[HarmonyPatch(typeof(SequentialFlow), "AddAction"), HarmonyPrefix]
3836
private static bool SequentialFlow_AddAction(FlowAction action)
3937
{
4038
if (action.Name == "Creating Splash Screens Prefab")

0 commit comments

Comments
 (0)