feat(saves): add local save selection and editing
This commit is contained in:
1 parent
2b1da24263
commit
073a907617
18 files changed
+634
-4
No files matched your search
@@ -14,6 +14,8 @@ export const IPC_CHANNEL_PREFIXES = [
|
||||
'install:',
|
||||
/** Listing and managing installed copies. */
|
||||
'copies:',
|
||||
/** Local account and save management. */
|
||||
'saves:',
|
||||
/** Starting and stopping the active copy. */
|
||||
'launch:',
|
||||
/** The launcher's own settings. */
|
||||
|
||||
@@ -15,6 +15,7 @@ import {
|
||||
} from '../schemas/install.ts';
|
||||
import { LabInfoSchema, LaunchStateSchema } from '../schemas/launch.ts';
|
||||
import { MaintenanceInfoSchema, MaintenanceProgressSchema, MaintenanceRequestSchema } from '../schemas/maintenance.ts';
|
||||
import { CurrencyEditsSchema, SaveDetailsSchema, SaveKeysSchema, SaveListSchema, SaveRegistrationSchema } from '../schemas/saves.ts';
|
||||
import { SettingsPatchSchema, SettingsSchema } from '../schemas/settings.ts';
|
||||
|
||||
/**
|
||||
@@ -127,6 +128,26 @@ export const ipcContract = {
|
||||
input: z.void(),
|
||||
output: z.void(),
|
||||
},
|
||||
'saves:list': {
|
||||
input: z.object({ copyId: CopyIdSchema }),
|
||||
output: SaveListSchema,
|
||||
},
|
||||
'saves:details': {
|
||||
input: SaveKeysSchema,
|
||||
output: SaveDetailsSchema,
|
||||
},
|
||||
'saves:setCurrent': {
|
||||
input: SaveKeysSchema,
|
||||
output: SaveListSchema,
|
||||
},
|
||||
'saves:create': {
|
||||
input: SaveRegistrationSchema,
|
||||
output: SaveListSchema,
|
||||
},
|
||||
'saves:editCurrencies': {
|
||||
input: SaveKeysSchema.extend({ values: CurrencyEditsSchema }),
|
||||
output: SaveDetailsSchema,
|
||||
},
|
||||
'launch:getState': {
|
||||
input: z.void(),
|
||||
output: LaunchStateSchema,
|
||||
|
||||
Reference in new issue
Block a user