This commit is contained in:
kmyuhkyuk 2023-01-05 08:49:34 +08:00
parent a980b6c71b
commit 6cebf091a5
2 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,6 @@
using Aki.Reflection.Patching;
using Aki.Reflection.Utils;
using System;
using System.Reflection;
using System.Threading.Tasks;
using Comfort.Common;
@ -9,7 +10,7 @@ namespace SkinHide.Patches
{
public class PlayerPatch : ModulePatch
{
private static readonly bool Is231Up;
private static readonly bool Is231Up = SkinHidePlugin.GameVersion > new Version("0.12.12.17349");
static PlayerPatch()
{

View File

@ -7,6 +7,8 @@ using EFT;
using EFT.Visual;
using SkinHide.Patches;
using SkinHide.Utils;
using System.Diagnostics;
using System;
namespace SkinHide
{
@ -29,6 +31,16 @@ namespace SkinHide
private bool BotHideCache;
public static Version GameVersion
{
get
{
FileVersionInfo exeInfo = Process.GetCurrentProcess().MainModule.FileVersionInfo;
return new Version(exeInfo.FileMajorPart, exeInfo.ProductMinorPart, exeInfo.ProductBuildPart, exeInfo.FilePrivatePart);
}
}
public enum Part
{
All,