Skip to content

Commit 10bd34e

Browse files
committed
1.0 Set Camera to black
1 parent 373a7c3 commit 10bd34e

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

NoIntro.csproj

+7-1
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@
3030
</ItemGroup>
3131

3232
<ItemGroup>
33-
<Reference Include="$(GameLibDir)\Assembly-CSharp.dll" />
33+
<Reference Include="Assembly-CSharp">
34+
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Spin Rhythm\SpinRhythm_Data\Managed\Assembly-CSharp.dll</HintPath>
35+
</Reference>
3436
</ItemGroup>
3537

3638
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
3739
<PropertyGroup>
3840
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
3941
</PropertyGroup>
4042
</Target>
43+
44+
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
45+
<Exec Command="copy /Y &quot;$(TargetDir)$(TargetName).dll&quot; &quot;$(SpinDir)\BepInEx\plugins\$(TargetName).dll&quot;" />
46+
</Target>
4147
</Project>

Patches/SkipIntroPatch.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,19 @@ namespace NoIntro
66
public static class NoIntroPatches
77
{
88
[HarmonyPatch(typeof(StartupScene), "Update")]
9-
[HarmonyPostfix]
9+
[HarmonyPrefix]
1010
private static void StartupScene_Update_Prefix(StartupScene __instance,
1111
ref float ___m_fadeDuration, GameObject ___startupAnimationObject)
1212
{
1313
__instance.animationLength = 0f;
1414
___m_fadeDuration = 0f;
1515
___startupAnimationObject.SetActive(false);
1616
}
17+
18+
[HarmonyPatch(typeof(StartupScene), "Start")]
19+
[HarmonyPostfix]
20+
private static void StartupScene_Start_Postfix(StartupScene __instance) {
21+
__instance.GetComponentInChildren<Camera>().backgroundColor = Color.black;
22+
}
1723
}
1824
}

PluginInfo.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ class PluginInfo
44
{
55
public const string PLUGIN_GUID = "SRXD.Pink.NoIntro";
66
public const string PLUGIN_NAME = "No Intro";
7-
public const string PLUGIN_VERSION = "1.2.0";
7+
public const string PLUGIN_VERSION = "1.3.0";
88
}
99
}

0 commit comments

Comments
 (0)