Skip to content

Commit

Permalink
Prevent files that don't have the .ovl extention from being loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Feb 1, 2020
1 parent 235841e commit 6fd7d88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ static void rebuildUI() {
if (entry.path().filename() == "ovlmenu.ovl")
continue;

if (entry.path().extension() != ".ovl")
continue;

auto [result, name] = getOverlayName(entry.path());
if (result != ResultSuccess)
continue;
Expand Down

0 comments on commit 6fd7d88

Please sign in to comment.