Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
making cprev warning optional + fix warning always shown
Browse files Browse the repository at this point in the history
  • Loading branch information
KirisameSoup committed Apr 4, 2024
1 parent a877136 commit 0e52285
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cprev/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ void Start()

void OnGUI()
{
if (!enabledCPR || !shouldWarnInvalid) return;

if (!cpMissed) return;

if (timerLoaded && Timer.Timer.timerOpened) { if(!Speedrun.invalid) TimerInvalidWarning("Missed Checkpoint"); }
Expand Down Expand Up @@ -147,6 +149,7 @@ static class TimerInteg
}

public static bool enabledCPR = true;
public static bool shouldWarnInvalid = true;
static bool cpMissed;
static readonly bool timerLoaded = BepInEx.Bootstrap.Chainloader.PluginInfos.ContainsKey("com.plcc.hff.timer");
}
Expand Down
2 changes: 1 addition & 1 deletion cprev/cprev.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net46</TargetFramework>
<AssemblyName>cprev</AssemblyName>
<Description>cprev</Description>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down

0 comments on commit 0e52285

Please sign in to comment.