mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 15:17:26 +08:00
[+] Splash+ support
This commit is contained in:
21
AquaMai/Helpers/GameInfo.cs
Normal file
21
AquaMai/Helpers/GameInfo.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user