[studio] FileInfo: reset file info when opening
All checks were successful
Build / build (push) Successful in 1m12s

This commit is contained in:
2026-02-05 22:22:07 -06:00
parent 62337bd29e
commit f204d01a3d

View File

@@ -15,6 +15,7 @@ ox::Error FileInfo::open(ox::StringParam filePath) noexcept {
auto &fs = m_sctx.project->romFs();
auto const fileBuff = fs.read(m_filePath).or_value({});
auto hdr = keel::readAssetHeader(fileBuff).or_value({});
m_fileInfo = {};
m_fileInfo.assetId.emplace(hdr.uuid.toString());
m_fileInfo.typeName.emplace(std::move(hdr.clawHdr.typeName));
m_fileInfo.typeVersion.emplace(hdr.clawHdr.typeVersion);