forked from akanyan/STARTLINER
feat: new config format
This commit is contained in:
44
src/types.ts
44
src/types.ts
@ -26,13 +26,47 @@ export interface ProfileMeta {
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface Profile extends ProfileMeta {
|
||||
data: {
|
||||
mods: string[];
|
||||
cfg: { [key: string]: string | boolean | number };
|
||||
};
|
||||
export interface SegatoolsConfig {
|
||||
target: string;
|
||||
amfs: string;
|
||||
option: string;
|
||||
appdata: string;
|
||||
enable_aime: boolean;
|
||||
intel: boolean;
|
||||
}
|
||||
|
||||
export interface DisplayConfig {
|
||||
target: String;
|
||||
rez: [number, number];
|
||||
mode: 'Window' | 'Borderless' | 'Fullscreen';
|
||||
rotation: number;
|
||||
frequency: number;
|
||||
borderless_fullscreen: boolean;
|
||||
}
|
||||
|
||||
export interface NetworkConfig {
|
||||
network_type: 'Remote' | 'Artemis';
|
||||
local_path: string;
|
||||
local_console: boolean;
|
||||
remote_address: string;
|
||||
keychip: string;
|
||||
subnet: string;
|
||||
suffix: number | null;
|
||||
}
|
||||
export interface BepInExConfig {
|
||||
console: boolean;
|
||||
}
|
||||
|
||||
export interface Profile extends ProfileMeta {
|
||||
mods: string[];
|
||||
sgt: SegatoolsConfig;
|
||||
display: DisplayConfig;
|
||||
network: NetworkConfig;
|
||||
bepinex: BepInExConfig;
|
||||
}
|
||||
|
||||
export type Module = 'sgt' | 'display' | 'network';
|
||||
|
||||
export interface Dirs {
|
||||
config_dir: string;
|
||||
data_dir: string;
|
||||
|
Reference in New Issue
Block a user