mirror of
https://github.com/djdevin/recflare.git
synced 2026-10-28 00:18:58 -07:00
[rooms] load Studio export dependencies (#142)
This commit is contained in:
@@ -962,9 +962,15 @@ function pickBakedBundle(
|
||||
target: number | null
|
||||
): { filename: string; hash: string | null } | null {
|
||||
if (!Array.isArray(save.UnitySubAssets)) return null
|
||||
const rootId = typeof save.UnityAssetId === 'string' ? save.UnityAssetId.toLowerCase() : null
|
||||
const rows = save.UnitySubAssets.filter(
|
||||
(item): item is { Target?: unknown; Filename?: unknown; Hash?: unknown } =>
|
||||
typeof item === 'object' && item !== null
|
||||
typeof item === 'object' &&
|
||||
item !== null &&
|
||||
(rootId === null ||
|
||||
('UnityAssetId' in item &&
|
||||
typeof item.UnityAssetId === 'string' &&
|
||||
item.UnityAssetId.toLowerCase() === rootId))
|
||||
)
|
||||
const chosen =
|
||||
target === null
|
||||
|
||||
Reference in New Issue
Block a user