mirror of
https://github.com/N64Recomp/N64ModernRuntime.git
synced 2026-05-11 03:12:15 +00:00
Fix build on compilers that don't properly support aggregate initialization
This commit is contained in:
parent
f36cdf9ac1
commit
e225e22d61
1 changed files with 6 additions and 0 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue