Skip to content

Commit 6fd7d88

Browse files
committed
Prevent files that don't have the .ovl extention from being loaded
1 parent 235841e commit 6fd7d88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ static void rebuildUI() {
8484
if (entry.path().filename() == "ovlmenu.ovl")
8585
continue;
8686

87+
if (entry.path().extension() != ".ovl")
88+
continue;
89+
8790
auto [result, name] = getOverlayName(entry.path());
8891
if (result != ResultSuccess)
8992
continue;

0 commit comments

Comments
 (0)