mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-13 04:17:27 +08:00
[+] CustomCameraId (#66)
* [+] CustomCameraId * [F] Map CameraType to the correct Camera IDs using enum * [+] GameInfo Utils * [+] CustomCameraId Add ChimeCamera Support * [+] Decide whether to print a CameraList based on the Config
This commit is contained in:
19
AquaMai/Utils/GameInfo.cs
Normal file
19
AquaMai/Utils/GameInfo.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using MAI2System;
|
||||
|
||||
namespace AquaMai.Utils;
|
||||
|
||||
public class GameInfo
|
||||
{
|
||||
public static uint GetGameVersion()
|
||||
{
|
||||
return (uint) typeof(ConstParameter).GetField("NowGameVersion", BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy).GetValue(null);
|
||||
}
|
||||
|
||||
public 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