feat: add some funcs

This commit is contained in:
lucasdpt
2026-06-14 14:23:37 +02:00
parent 48fa508540
commit 4756420f8d
11 changed files with 240 additions and 44 deletions
+17
View File
@@ -67,6 +67,20 @@ export interface UpdateStatus {
message?: string
}
/** Métadonnées du modpack lues depuis le pack.toml packwiz distant. */
export interface PackMeta {
name: string
version: string
minecraft: string
neoforge: string
}
/** Options de la séquence "Jouer". */
export interface PlayOptions {
/** Force la revérification/redownload des fichiers (réparation). */
repair?: boolean
}
/** Réglages utilisateur persistés localement. */
export interface UserSettings {
/** RAM max allouée à la JVM, en Mo. */
@@ -90,6 +104,9 @@ export const IPC = {
settingsSet: 'settings:set',
appVersion: 'app:version',
openInstanceDir: 'instance:open',
openLogsDir: 'logs:open',
playStop: 'play:stop',
packGet: 'pack:get',
updateInstall: 'update:install'
} as const