Skip to content

Commit

Permalink
VideoCommon: when loading graphics mods from saved settings, if the g…
Browse files Browse the repository at this point in the history
…raphics mod in question no longer exists, skip it so it is removed on next save
  • Loading branch information
iwubcode committed Jul 1, 2022
1 parent 96a17f3 commit e1658db
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ void GraphicsModGroupConfig::Load()
graphics_mod->DeserializeFromProfile(mod_json_obj);

auto mod_full_path = graphics_mod->GetAbsolutePath();
if (!File::Exists(mod_full_path))
{
continue;
}
known_paths.insert(std::move(mod_full_path));
m_graphics_mods.push_back(*graphics_mod);
}
Expand Down

0 comments on commit e1658db

Please sign in to comment.