feat(launcher): detect missing client folders and support relocating while keeping saves

This commit is contained in:
N0VAN0M4LY committed 2026-11-30 21:32:17 +08:00
1 parent 2820d40d87
commit a0515c4ed3
12 files changed
+199 -20

No files matched your search

+4
View File
@@ -132,6 +132,10 @@ export const ipcContract = {
input: z.object({ id: CopyIdSchema, name: CopyNameSchema }),
output: CopiesSchema,
},
'copies:relocate': {
input: z.object({ id: CopyIdSchema, path: z.string().min(1) }),
output: CopiesSchema,
},
'copies:setDecalSource': {
input: z.object({ id: CopyIdSchema, path: z.string().min(1).nullable() }),
output: CopiesSchema,
@@ -164,6 +164,8 @@ export const InstallRecordSchema = z.object({
sourceFiles: z.array(z.string().min(1)).optional(),
/** Relative resource paths linked to the source and detached on a version update. */
hardlinkedFiles: z.array(z.string().min(1)).optional(),
/** Runtime check hydrated when listing copies (never persisted to copies.json): true if copyPath or core game files are missing on disk. */
folderMissing: z.boolean().optional(),
});
export type InstallRecord = z.output<typeof InstallRecordSchema>;