Add folder parameter to best, grid and main

This commit is contained in:
2025-05-14 11:46:15 +02:00
parent 321e2a2f28
commit d6603dd638
9 changed files with 24 additions and 11 deletions

View File

@@ -69,9 +69,9 @@ namespace platform {
platform::JsonValidator validator(platform::SchemaV1_0::schema);
return validator.validate(data);
}
void Result::save()
void Result::save(const std::string& path)
{
std::ofstream file(Paths::results() + getFilename());
std::ofstream file(path + getFilename());
file << data;
file.close();
}