Skip to content

Commit 5fb5b49

Browse files
committed
Fix typos in comments and update target frame rate assignment
1 parent ccebb10 commit 5fb5b49

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/KatsTrigger/KatsTrigger/Plugin.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public class Plugin : BasePlugin
4242

4343
/// <summary>
4444
/// Flag indicating whether the cached resolution is valid.
45-
/// Set to false when the resolution config changes to trigger re-parsing.
45+
/// Set to false when the resolution config changes to trigger reparsing.
4646
/// </summary>
4747
private static bool _resolutionCacheValid;
4848

4949
/// <summary>
50-
/// Invalidates the resolution cache, forcing a re-parse on next access.
50+
/// Invalidates the resolution cache, forcing a reparse on next access.
5151
/// Called when the user changes the resolution setting.
5252
/// </summary>
5353
private static void InvalidateResolutionCache() => _resolutionCacheValid = false;

src/WinterBurrows/WinterBurrow/Plugin.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
using System.Net.Mime;
2+
using System.Numerics;
3+
14
namespace WinterBurrow;
25

36
/// <summary>
@@ -100,7 +103,7 @@ private static void UpdateDisplay(bool force = false)
100103
{
101104
// Apply VSync and framerate settings
102105
QualitySettings.vSyncCount = DisplayConfig.GetVSyncValue();
103-
Application.targetFrameRate = QualitySettings.vSyncCount == 0 ? DisplayConfig.TargetFramerate.Value : -1;
106+
MediaTypeNames.Application.targetFrameRate = QualitySettings.vSyncCount == 0 ? DisplayConfig.TargetFramerate.Value : -1;
104107

105108
if (force)
106109
{

0 commit comments

Comments
 (0)