feat: partial support for patches

This commit is contained in:
2025-04-11 15:27:13 +00:00
parent b9a40d44a8
commit 1a68eda8c1
21 changed files with 1218 additions and 583 deletions

View File

@ -30,6 +30,10 @@ export enum Feature {
Mu3Hook = 1 << 3,
Mu3IO = 1 << 4,
ChusanHook = 1 << 5,
ChuniIO = 1 << 6,
Mempatcher = 1 << 7,
GameDLL = 1 << 8,
AmdDLL = 1 << 9,
}
export type Status =
@ -54,6 +58,9 @@ export interface ProfileData {
bepinex: BepInExConfig;
mu3_ini: Mu3IniConfig | undefined;
keyboard: KeyboardConfig | undefined;
patches: {
[key: string]: 'Enabled' | { Number: number } | { Hex: Int8Array };
};
}
export interface SegatoolsConfig {
@ -149,3 +156,10 @@ export interface Dirs {
data_dir: string;
cache_dir: string;
}
export interface Patch {
id: string;
name: string;
tooltip: string;
type: undefined | 'number';
}