mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-21 00:39:53 +00:00
ignore patch number in game version check
This commit is contained in:
parent
9d8a937738
commit
db1617149e
@ -1,4 +1,5 @@
|
||||
using Mirror;
|
||||
using HarmonyLib;
|
||||
using Mirror;
|
||||
using OWML.Common;
|
||||
using OWML.ModHelper;
|
||||
using QSB.Menus;
|
||||
@ -44,8 +45,13 @@ public class QSBCore : ModBehaviour
|
||||
public static AssetBundle TextAssetsBundle { get; private set; }
|
||||
public static bool IsHost => NetworkServer.active;
|
||||
public static bool IsInMultiplayer => QSBNetworkManager.singleton.isNetworkActive;
|
||||
public static string QSBVersion => Helper.Manifest.Version;
|
||||
public static string GameVersion => Application.version;
|
||||
public static string QSBVersion =>
|
||||
// todo: show this in kick message
|
||||
Helper.Manifest.Version;
|
||||
public static string GameVersion =>
|
||||
// ignore the last patch numbers like the title screen does
|
||||
// todo: show this in kick message
|
||||
Application.version.Split('.').Take(3).Join(delimiter: ".");
|
||||
public static bool DLCInstalled => EntitlementsManager.IsDlcOwned() == EntitlementsManager.AsyncOwnershipStatus.Owned;
|
||||
public static IMenuAPI MenuApi { get; private set; }
|
||||
public static DebugSettings DebugSettings { get; private set; } = new();
|
||||
|
Loading…
x
Reference in New Issue
Block a user