Skip to content

Commit 7566a17

Browse files
Fix error
1 parent 3eeb148 commit 7566a17

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public partial class Constants
2525
/// </summary>
2626
public static readonly string BASE_PATH = Path.Combine(BepInEx.Paths.BepInExRootPath, "..");
2727
/// <summary>
28-
/// Filename of the dumped data
28+
/// kFilename of the dumped data
2929
/// </summary>
3030
public static readonly string DUMPED_DATA_PATH = Path.Combine(BASE_PATH, "DumpedData");
3131
internal static readonly string CHECKSUM_PATH

src/Patches/AutoUpdate.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private static void StartScreen_Start()
3535
break;
3636
}
3737
string newVersion = latest?.GetProperty("tag_name").GetString()!.TrimStart('v')!;
38-
if (newVersion.IsVersionOlderOrEqual(Plugin.VERSION)) return;
38+
if (newVersion.IsVersionOlderOrEqual(Constants.POLYMOD_VERSION)) return;
3939
string os = Application.platform switch
4040
{
4141
RuntimePlatform.WindowsPlayer => "win",

src/Patches/Compatibility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ private static void StartScreen_Start()
8383

8484
Version incompatibilityWarningLastVersion = new(PlayerPrefs.GetString(
8585
Constants.INCOMPATIBILITY_WARNING_LAST_VERSION_KEY,
86-
Plugin.POLYTOPIA_VERSION.CutRevision().ToString()
86+
Constants.POLYTOPIA_VERSION.CutRevision().ToString()
8787
));
8888
if (VersionManager.SemanticVersion.Cast().CutRevision() > incompatibilityWarningLastVersion)
8989
{

src/Patches/Hub.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private static void StartScreen_Start()
9191
textComponent.fontSize = 18;
9292
textComponent.alignment = TextAlignmentOptions.BottomLeft;
9393

94-
text.GetComponent<TMPLocalizer>().Text = $"PolyMod {Plugin.VERSION}";
94+
text.GetComponent<TMPLocalizer>().Text = $"PolyMod {Constants.POLYMOD_VERSION}";
9595
text.AddComponent<LayoutElement>().ignoreLayout = true;
9696
}
9797
else if (parentName == "NewsButton")

src/Plugin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace PolyMod;
1010

11-
[BepInPlugin("com.polymod", "PolyMod", VERSION)]
11+
[BepInPlugin("com.polymod", "PolyMod", Constants.POLYMOD_VERSION)]
1212
internal partial class Plugin : BepInEx.Unity.IL2CPP.BasePlugin
1313
{
1414
internal record PolyConfig(

0 commit comments

Comments
 (0)