Skip to content

Commit

Permalink
loader: Avoid throwing an exception if the bloopair configuration dir…
Browse files Browse the repository at this point in the history
… cannot be opened
  • Loading branch information
GaryOderNichts committed Jun 11, 2024
1 parent 9710e59 commit dea1ee1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion loader/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ bool LoadAndApplyBloopairConfiguration(IOSHandle handle)
{
std::regex regex("^Controller-([A-Za-z0-9-]+)\\.conf$");

for (const auto& entry : std::filesystem::directory_iterator(BLOOPAIR_CONFIGURATION_DIR)) {
std::error_code ec;
for (const auto& entry : std::filesystem::directory_iterator(BLOOPAIR_CONFIGURATION_DIR, ec)) {
if (!entry.is_regular_file()) {
continue;
}
Expand Down

0 comments on commit dea1ee1

Please sign in to comment.