Skip to content

Commit

Permalink
psnes/pnes: fix uppercase roms not detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpasjuste committed Mar 28, 2019
1 parent 309b1b1 commit 7a8fe60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pnes/pnes/romlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ void PNESRomList::build() {
}

for (auto &file : fileList) {
if (!Utility::endsWith(file.name, ".zip")
&& !Utility::endsWith(file.name, ".nes")) {
if (!Utility::endsWith(file.name, ".zip", false)
&& !Utility::endsWith(file.name, ".nes", false)) {
continue;
}
auto *rom = new Rom();
Expand Down
6 changes: 3 additions & 3 deletions psnes/psnes/romlist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ void PSNESRomList::buildNoDb(bool use_icons) {
}

for (auto &file : fileList) {
if (!Utility::endsWith(file.name, ".zip")
&& !Utility::endsWith(file.name, ".smc")
&& !Utility::endsWith(file.name, ".sfc")) {
if (!Utility::endsWith(file.name, ".zip", false)
&& !Utility::endsWith(file.name, ".smc", false)
&& !Utility::endsWith(file.name, ".sfc", false)) {
continue;
}
auto *rom = new Rom();
Expand Down

0 comments on commit 7a8fe60

Please sign in to comment.