Remove the concept of a resource directory

The concept of a resource directory was confusing, error-prone and
was only used to specify the directory of the base config json anyway.
Therefore, remove the concept of the resource directory and use the
parent directory of the base config directly.
This commit is contained in:
2025-04-07 12:58:13 +02:00
parent ee85f0df8f
commit a97b676b92
11 changed files with 35 additions and 49 deletions

View File

@@ -54,9 +54,8 @@ int main(int argc, char** argv)
}
std::string pathToJson = argv[1];
std::string resourceDirectory = argc <= 3 ? DRAMSYS_RESOURCE_DIR : argv[3];
auto configuration = DRAMSys::Config::from_path(pathToJson, resourceDirectory);
auto configuration = DRAMSys::Config::from_path(pathToJson);
nlohmann::json json;
json["simulation"] = configuration;