fix(saves): keep imported presets intact, cap crews to preset units and drop used-unit scan
This commit is contained in:
1 parent
388dc9d9d7
commit
e6e75d92c6
10 files changed
+109
-114
No files matched your search
@@ -213,7 +213,7 @@ export const ipcContract = {
|
||||
output: z.array(z.string()),
|
||||
},
|
||||
'saves:previewOfficial': {
|
||||
input: SaveOfficialRequestSchema.extend({ includeUsedVehicles: z.boolean() }),
|
||||
input: SaveOfficialRequestSchema,
|
||||
output: OfficialPreviewSchema,
|
||||
},
|
||||
'saves:importOfficial': {
|
||||
|
||||
@@ -80,7 +80,7 @@ export const SaveOfficialRequestSchema = SaveKeysSchema.extend({
|
||||
paths: z.array(z.string().min(1)).min(1).max(3),
|
||||
});
|
||||
export const OfficialImportOptionsSchema = z.object({
|
||||
importSettings: z.boolean(), unlockVehicles: z.boolean(), includeUsedVehicles: z.boolean(),
|
||||
importSettings: z.boolean(), unlockVehicles: z.boolean(),
|
||||
equipment: z.enum(['full', 'basic', 'stock']),
|
||||
});
|
||||
export const OfficialPreviewSchema = z.object({
|
||||
|
||||
Reference in new issue
Block a user