remove hardcoded directory from generic directory creation

This commit is contained in:
Switch 2026-01-07 14:29:57 -05:00
parent 0762ef0431
commit af9296a3b6

View File

@ -1147,13 +1147,13 @@ void MainWindow::OnDebugDumpGeneric(wxCommandEvent& event)
{
try
{
fs::create_directories(ActiveSettings::GetUserDataPath("dump/shaders"));
fs::create_directories(ActiveSettings::GetUserDataPath(dumpSubpath));
}
catch (const std::exception & ex)
{
SystemException sys(ex);
cemuLog_log(LogType::Force, "can't create shaders dump folder: {}", ex.what());
ActiveSettings::EnableDumpShaders(false);
cemuLog_log(LogType::Force, "can't create {} folder: {}", dumpSubpath, ex.what());
setDumpState(false);
}
}
}