perf(content): remove exception-driven setup probes
This commit is contained in:
parent
f05afc07c1
commit
230a7df454
11 changed files with 598 additions and 47 deletions
|
|
@ -356,7 +356,11 @@ public sealed class DatPreparedAssetSource : IPreparedAssetSource
|
|||
};
|
||||
if (expected == DBObjType.Unknown)
|
||||
return PreparedAssetPresence.Missing;
|
||||
return _dats.ResolveId(sourceFileId).Any(r => r.Type == expected)
|
||||
return _dats.TryResolvePreferred(
|
||||
sourceFileId,
|
||||
out _,
|
||||
out DBObjType actual)
|
||||
&& actual == expected
|
||||
? PreparedAssetPresence.Available
|
||||
: PreparedAssetPresence.Missing;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue