Optimize
This commit is contained in:
@@ -187,12 +187,13 @@ namespace openVulkanoCpp::AR
|
||||
{
|
||||
if (!m_colorWriter)
|
||||
{
|
||||
std::filesystem::path p(path);
|
||||
for (MultiPartArchiveWriter* writer: { m_colorWriter.get(), m_depthWriter.get(), m_confidenceWriter.get(), m_metadataWriter.get(), m_highResWriter.get() })
|
||||
{
|
||||
if (writer) writer->Move(path);
|
||||
if (writer) writer->Move(p);
|
||||
}
|
||||
if (std::filesystem::exists(m_settings.path / RECORDING_METADATA_FILENAME))
|
||||
std::filesystem::rename(m_settings.path / RECORDING_METADATA_FILENAME, path + "/" + RECORDING_METADATA_FILENAME);
|
||||
std::filesystem::rename(m_settings.path / RECORDING_METADATA_FILENAME, p / RECORDING_METADATA_FILENAME);
|
||||
}
|
||||
|
||||
m_persistent = true;
|
||||
|
||||
Reference in New Issue
Block a user