Skip to content

Commit

Permalink
Fix build on compilers that don't properly support aggregate initiali…
Browse files Browse the repository at this point in the history
…zation
  • Loading branch information
Mr-Wiseguy committed Sep 10, 2024
1 parent f36cdf9 commit e225e22
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions librecomp/include/librecomp/mods.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,18 @@ namespace recomp {
std::filesystem::path mod_path;
ModOpenError error;
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 {
std::string mod_id;
ModLoadError error;
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();
Expand Down

0 comments on commit e225e22

Please sign in to comment.