Game-specific settings (#623)

This commit is contained in:
redphx
2025-01-28 11:28:26 +07:00
parent 91c8172564
commit e3f971845f
79 changed files with 2205 additions and 1426 deletions

View File

@@ -1,4 +1,4 @@
export type PreferenceSetting = {
type PreferenceSetting = {
default: any;
optionsGroup?: string;
options?: { [index: string]: string };
@@ -17,4 +17,13 @@ export type PreferenceSetting = {
label?: string;
};
export type PreferenceSettings = { [index in PrefKey]: PreferenceSetting };
type PreferenceSettings = { [index in PrefKey]: PreferenceSetting };
type StreamPreferredLocale = 'default' | string;
type ControllerSetting = {
shortcutPresetId: number;
customizationPresetId: number;
}
type ControllerSettings = Record<string, ControllerSetting>;