Skip to content

Commit

Permalink
fix: SD-Updater short file name extension problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Apr 16, 2019
1 parent 3d3f048 commit c891b1d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified LovyanLauncher/build/LovyanLauncher.bin
Binary file not shown.
5 changes: 4 additions & 1 deletion LovyanLauncher/src/MenuItemSDUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@ void MenuItemSDUpdater::onEnter() {
if (!file.isDirectory()) {
int idx = fn.lastIndexOf('.');
ext = fn.substring(idx + 1);
ext.toLowerCase();
fn = fn.substring(0, idx);
if (ext == "bin" && !fn.startsWith("/.") && fn != "menu" && file.size() > 100) {
mi = new MenuItemSDUpdater(fn, ptmp, false, fn);
filesItems.push_back(mi);
if (lastBin == fn) selectmi = mi;
}
} else {
if (fn.startsWith("bin") || fn.endsWith("bin")) {
String ftmp = fn;
ftmp.toLowerCase();
if (ftmp.startsWith("bin") || ftmp.endsWith("bin")) {
addItem(new MenuItemSDUpdater(fn, ptmp, true, ""));
}
}
Expand Down

0 comments on commit c891b1d

Please sign in to comment.