feat(tuning): configure tuning for each game copy
This commit is contained in:
1 parent
61255f5473
commit
893d60854f
15 files changed
+440
-9
No files matched your search
@@ -14,6 +14,8 @@ export const IPC_CHANNEL_PREFIXES = [
|
||||
'install:',
|
||||
/** Listing and managing installed copies. */
|
||||
'copies:',
|
||||
/** Settings shared by the saves of a game copy. */
|
||||
'tuning:',
|
||||
/** Local account and save management. */
|
||||
'saves:',
|
||||
/** Starting and stopping the active copy. */
|
||||
|
||||
@@ -16,6 +16,7 @@ import {
|
||||
import { LabInfoSchema, LaunchStateSchema } from '../schemas/launch.ts';
|
||||
import { MaintenanceInfoSchema, MaintenanceProgressSchema, MaintenanceRequestSchema } from '../schemas/maintenance.ts';
|
||||
import { ResearchBranchSchema, ResearchOperationSchema, SaveResearchSchema, OfficialImportOptionsSchema, OfficialPreviewSchema, SaveOfficialRequestSchema, CurrencyEditsSchema, SaveBackupNameSchema, SaveBackupSchema, SaveDetailsSchema, SaveKeysSchema, SaveListSchema, SaveRegistrationSchema, SaveTransferSchema } from '../schemas/saves.ts';
|
||||
import { TuningPatchSchema, TuningViewSchema } from '../schemas/tuning.ts';
|
||||
import { SettingsPatchSchema, SettingsSchema } from '../schemas/settings.ts';
|
||||
|
||||
/**
|
||||
@@ -196,6 +197,14 @@ export const ipcContract = {
|
||||
input: SaveKeysSchema.extend({ branch: ResearchBranchSchema, action: ResearchOperationSchema }),
|
||||
output: SaveResearchSchema,
|
||||
},
|
||||
'tuning:get': {
|
||||
input: z.object({ copyId: CopyIdSchema }),
|
||||
output: TuningViewSchema,
|
||||
},
|
||||
'tuning:update': {
|
||||
input: z.object({ copyId: CopyIdSchema, patch: TuningPatchSchema }),
|
||||
output: TuningViewSchema,
|
||||
},
|
||||
'launch:getState': {
|
||||
input: z.void(),
|
||||
output: LaunchStateSchema,
|
||||
|
||||
Reference in new issue
Block a user