[studio] FileInfo: reset file info when opening
All checks were successful
Build / build (push) Successful in 1m12s
All checks were successful
Build / build (push) Successful in 1m12s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user