mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-06 05:47:37 +08:00
22 lines
650 B
C#
22 lines
650 B
C#
using System.Reflection;
|
|
using MAI2System;
|
|
|
|
namespace AquaMai.Helpers;
|
|
|
|
public class GameInfo
|
|
{
|
|
public static uint GameVersion { get; } = GetGameVersion();
|
|
|
|
private static uint GetGameVersion()
|
|
{
|
|
return (uint)typeof(ConstParameter).GetField("NowGameVersion", BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy).GetValue(null);
|
|
}
|
|
|
|
public static string GameId { get; } = GetGameId();
|
|
|
|
private static string GetGameId()
|
|
{
|
|
return typeof(ConstParameter).GetField("GameIDStr", BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy).GetValue(null) as string;
|
|
}
|
|
}
|