feat(decals): import a decal cache for each copy

Store the chosen cache in the copy data directory and use it for future builds. Restore the placeholder index when the copy has no available cache.

Verified type checks, the launcher build, a temporary .43 build, and the import and replacement flow from the Windows package.
This commit is contained in:
N0VAN0M4LY committed 2026-11-30 09:59:14 +08:00
1 parent 10839f050f
commit 1e3843b7e9
18 files changed
+304 -53

No files matched your search

+4
View File
@@ -118,6 +118,10 @@ export const ipcContract = {
input: z.object({ id: CopyIdSchema, name: CopyNameSchema }),
output: CopiesSchema,
},
'copies:setDecalSource': {
input: z.object({ id: CopyIdSchema, path: z.string().min(1).nullable() }),
output: CopiesSchema,
},
'copies:maintenanceInfo': {
input: z.object({ id: CopyIdSchema }),
output: MaintenanceInfoSchema,