feat(launcher): add Mods page, per-client presets, custom repo folder, and launch integration
This commit is contained in:
1 parent
aa7a6e7d02
commit
dbc21182a2
21 files changed
+1961
-21
No files matched your search
@@ -16,6 +16,8 @@ export const IPC_CHANNEL_PREFIXES = [
|
||||
'copies:',
|
||||
/** Settings shared by the saves of a game copy. */
|
||||
'tuning:',
|
||||
/** Additive mods repository, per-copy ordering/toggles, and presets. */
|
||||
'mods:',
|
||||
/** Local account and save management. */
|
||||
'saves:',
|
||||
/** Starting and stopping the active copy. */
|
||||
|
||||
@@ -17,6 +17,7 @@ import {
|
||||
} from '../schemas/install.ts';
|
||||
import { LabInfoSchema, LaunchStateSchema } from '../schemas/launch.ts';
|
||||
import { MaintenanceInfoSchema, MaintenanceProgressSchema, MaintenanceRequestSchema } from '../schemas/maintenance.ts';
|
||||
import { ModsStateViewSchema } from '../schemas/mods.ts';
|
||||
import { ActivePatchSetSchema, PackApplyResultSchema, PackCheckSchema, PackReleaseSchema } from '../schemas/patch-pack.ts';
|
||||
import { AccountEditsSchema, SaveAvatarChoicesSchema, SaveAvatarIdSchema, ResearchBranchSchema, ResearchOperationSchema, SaveResearchSchema, OfficialImportOptionsSchema, OfficialPreviewSchema, OnlineDataSourceSchema, SaveOfficialRequestSchema, CurrencyEditsSchema, SaveBackupNameSchema, SaveBackupSchema, SaveDetailsSchema, SaveKeysSchema, SaveListSchema, SaveRegistrationSchema, SaveTransferSchema } from '../schemas/saves.ts';
|
||||
import { TuningPatchSchema, TuningViewSchema } from '../schemas/tuning.ts';
|
||||
@@ -262,6 +263,50 @@ export const ipcContract = {
|
||||
input: z.object({ copyId: CopyIdSchema, patch: TuningPatchSchema }),
|
||||
output: TuningViewSchema,
|
||||
},
|
||||
'mods:getState': {
|
||||
input: z.object({ copyId: CopyIdSchema }),
|
||||
output: ModsStateViewSchema,
|
||||
},
|
||||
'mods:setEnabled': {
|
||||
input: z.object({ copyId: CopyIdSchema, modId: z.string().min(1), enabled: z.boolean() }),
|
||||
output: ModsStateViewSchema,
|
||||
},
|
||||
'mods:setOrder': {
|
||||
input: z.object({ copyId: CopyIdSchema, order: z.array(z.string()) }),
|
||||
output: ModsStateViewSchema,
|
||||
},
|
||||
'mods:autoSort': {
|
||||
input: z.object({ copyId: CopyIdSchema }),
|
||||
output: ModsStateViewSchema,
|
||||
},
|
||||
'mods:savePreset': {
|
||||
input: z.object({ copyId: CopyIdSchema, name: z.string().trim().min(1).max(80), overwriteId: z.string().min(1).optional() }),
|
||||
output: ModsStateViewSchema,
|
||||
},
|
||||
'mods:applyPreset': {
|
||||
input: z.object({ copyId: CopyIdSchema, presetId: z.string().min(1) }),
|
||||
output: ModsStateViewSchema,
|
||||
},
|
||||
'mods:deletePreset': {
|
||||
input: z.object({ copyId: CopyIdSchema, presetId: z.string().min(1) }),
|
||||
output: ModsStateViewSchema,
|
||||
},
|
||||
'mods:exportPreset': {
|
||||
input: z.object({ copyId: CopyIdSchema, presetId: z.string().min(1) }),
|
||||
output: z.object({ path: z.string().nullable() }),
|
||||
},
|
||||
'mods:importPreset': {
|
||||
input: z.object({ copyId: CopyIdSchema }),
|
||||
output: z.object({ imported: z.boolean(), state: ModsStateViewSchema }),
|
||||
},
|
||||
'mods:openFolder': {
|
||||
input: z.void(),
|
||||
output: z.void(),
|
||||
},
|
||||
'mods:setFolder': {
|
||||
input: z.object({ copyId: CopyIdSchema, path: z.string().min(1).nullable() }),
|
||||
output: ModsStateViewSchema,
|
||||
},
|
||||
'launch:getState': {
|
||||
input: z.void(),
|
||||
output: LaunchStateSchema,
|
||||
|
||||
Reference in new issue
Block a user