Switch to aggregate initialization for Version to work around missing implicit constructor on some compilers

This commit is contained in:
Mr-Wiseguy 2025-04-06 04:17:07 -04:00
parent 5ec43a1182
commit a0bd63f725
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ namespace recompui {
if (exists) {
installation.mod_id = std::string((const char *)(target_path.stem().u8string().c_str()));
installation.display_name = installation.mod_id;
installation.mod_version = recomp::Version(0, 0, 0);
installation.mod_version = recomp::Version{0, 0, 0, ""};
installation.mod_file = target_path;
}
}

View file

@ -582,7 +582,7 @@ ModMenu::~ModMenu() {
recompui::ModMenu* mod_menu;
void recompui::update_mod_list() {
void update_mod_list() {
if (mod_menu) {
recompui::ContextId ui_context = recompui::get_config_context_id();
bool opened = ui_context.open_if_not_already();
@ -596,7 +596,7 @@ void recompui::update_mod_list() {
}
}
void recompui::process_game_started() {
void process_game_started() {
if (mod_menu) {
recompui::ContextId ui_context = recompui::get_config_context_id();
bool opened = ui_context.open_if_not_already();