Fix build on compilers that don't properly support aggregate initialization

This commit is contained in:
Mr-Wiseguy 2024-09-09 22:22:42 -04:00
parent f36cdf9ac1
commit e225e22d61

View file

@ -142,12 +142,18 @@ namespace recomp {
std::filesystem::path mod_path; std::filesystem::path mod_path;
ModOpenError error; ModOpenError error;
std::string error_param; std::string error_param;
ModOpenErrorDetails() = default;
ModOpenErrorDetails(const std::filesystem::path& mod_path_, ModOpenError error_, const std::string& error_param_) :
mod_path(mod_path_), error(error_), error_param(error_param_) {}
}; };
struct ModLoadErrorDetails { struct ModLoadErrorDetails {
std::string mod_id; std::string mod_id;
ModLoadError error; ModLoadError error;
std::string error_param; std::string error_param;
ModLoadErrorDetails() = default;
ModLoadErrorDetails(const std::string& mod_id_, ModLoadError error_, const std::string& error_param_) :
mod_id(mod_id_), error(error_), error_param(error_param_) {}
}; };
void scan_mods(); void scan_mods();