From 0d35134952f93154aecaf93f99a9cef49af8f297 Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 12 Jul 2021 21:56:54 -0600 Subject: [PATCH] Do not show `Bootstrap file` option for .firm files --- arm9/source/file_browse.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/arm9/source/file_browse.cpp b/arm9/source/file_browse.cpp index e085f0c..d3398f0 100644 --- a/arm9/source/file_browse.cpp +++ b/arm9/source/file_browse.cpp @@ -213,9 +213,13 @@ FileOperation fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) { if (!entry->isDirectory) { if (entry->isApp) { assignedOp[++maxCursors] = FileOperation::bootFile; - printf(" Boot file (Direct)\n"); - assignedOp[++maxCursors] = FileOperation::bootstrapFile; - printf(" Bootstrap file\n"); + if (extension(entry->name, {"firm"})) { + printf(" Boot file\n"); + } else { + printf(" Boot file (Direct)\n"); + assignedOp[++maxCursors] = FileOperation::bootstrapFile; + printf(" Bootstrap file\n"); + } } if(extension(entry->name, {"nds", "dsi", "ids", "app"})) {