Merge branch 'windows_fix' into 'develop'

Switch to <filesystem> remove operation

See merge request ems/astdm/modeling.dram/dram.sys.5!79
This commit is contained in:
2024-10-25 13:58:21 +00:00

View File

@@ -43,6 +43,7 @@
#include "DRAMSys/common/DebugManager.h"
#include <filesystem>
#include <fstream>
#include <sqlite3.h>
@@ -356,14 +357,7 @@ void TlmRecorder::commitRecordedDataToDB()
void TlmRecorder::openDB(const std::string& dbName)
{
std::ifstream f(dbName.c_str());
if (f.good())
{
if (remove(dbName.c_str()) != 0)
{
SC_REPORT_FATAL("TlmRecorder", "Error deleting file");
}
}
std::filesystem::remove(dbName.c_str());
if (sqlite3_open(dbName.c_str(), &db) != SQLITE_OK)
{