Skip to content

Commit

Permalink
Avoid an unhandled exception when mlc path is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
Exzap committed Jun 25, 2024
1 parent d4c2c3d commit f3d2083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/CemuApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ std::vector<const wxLanguageInfo*> CemuApp::GetAvailableTranslationLanguages(wxT

void CemuApp::CreateDefaultFiles(bool first_start)
{
std::error_code ec;
fs::path mlc = ActiveSettings::GetMlcPath();

// check for mlc01 folder missing if custom path has been set
if (!fs::exists(mlc) && !first_start)
if (!fs::exists(mlc, ec) && !first_start)
{
const wxString message = formatWxString(_("Your mlc01 folder seems to be missing.\n\nThis is where Cemu stores save files, game updates and other Wii U files.\n\nThe expected path is:\n{}\n\nDo you want to create the folder at the expected path?"),
_pathToUtf8(mlc));
Expand Down

0 comments on commit f3d2083

Please sign in to comment.