diff --git a/arm9/source/file_browse.cpp b/arm9/source/file_browse.cpp index cea15f1..bc39700 100644 --- a/arm9/source/file_browse.cpp +++ b/arm9/source/file_browse.cpp @@ -185,9 +185,6 @@ FileOperation fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) { if (!entry->isDirectory) { if (entry->isApp) { operations.push_back(FileOperation::bootFile); - if (!extension(entry->name, {"firm"})) { - operations.push_back(FileOperation::bootstrapFile); - } } if(extension(entry->name, {"nds", "dsi", "ids", "app", "srl"})) { @@ -240,9 +237,6 @@ FileOperation fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) { case FileOperation::bootFile: font->print(optionsCol, row++, false, extension(entry->name, {"firm"}) ? STR_BOOT_FILE : STR_BOOT_FILE_DIRECT, alignStart); break; - case FileOperation::bootstrapFile: - font->print(optionsCol, row++, false, STR_BOOTSTRAP_FILE, alignStart); - break; case FileOperation::mountNitroFS: font->print(optionsCol, row++, false, STR_MOUNT_NITROFS, alignStart); break; @@ -326,24 +320,6 @@ FileOperation fileBrowse_A(DirEntry* entry, char path[PATH_MAX]) { font->print(optionsCol, optionOffset + y, false, STR_LOADING, alignStart); font->update(false); break; - } case FileOperation::bootstrapFile: { - char baseFile[256], savePath[PATH_MAX]; //, bootstrapConfigPath[32]; - //snprintf(bootstrapConfigPath, 32, "%s:/_nds/nds-bootstrap.ini", isDSiMode() ? "sd" : "fat"); - strncpy(baseFile, entry->name.c_str(), 255); - *strrchr(baseFile, '.') = 0; - snprintf(savePath, PATH_MAX, "%s%s%s.sav", path, !access("saves", F_OK) ? "saves/" : "", baseFile); - CIniFile bootstrapConfig("/_nds/nds-bootstrap.ini"); - bootstrapConfig.SetString("NDS-BOOTSTRAP", "NDS_PATH", fullPath); - bootstrapConfig.SetString("NDS-BOOTSTRAP", "SAV_PATH", savePath); - bootstrapConfig.SetInt("NDS-BOOTSTRAP", "DSI_MODE", 0); - bootstrapConfig.SaveIniFile("/_nds/nds-bootstrap.ini"); - // TODO Something less hacky lol - chdir(isDSiMode()&&sdMounted ? "sd:/_nds" : "fat:/_nds"); - // TODO Read header and check for homebrew flag, based on that runNdsFile nds-bootstrap(-hb)-release - entry->name = "nds-bootstrap-release.nds"; - applaunch = true; - return FileOperation::bootFile; - break; } case FileOperation::restoreSaveNds: { ndsCardSaveRestore(entry->name.c_str()); break; diff --git a/arm9/source/file_browse.h b/arm9/source/file_browse.h index 1f03cb2..a149951 100644 --- a/arm9/source/file_browse.h +++ b/arm9/source/file_browse.h @@ -39,7 +39,6 @@ struct DirEntry { enum class FileOperation { none, bootFile, - bootstrapFile, mountNitroFS, ndsInfo, trimNds, diff --git a/arm9/source/language.inl b/arm9/source/language.inl index bbe080a..37d4afe 100644 --- a/arm9/source/language.inl +++ b/arm9/source/language.inl @@ -97,7 +97,6 @@ STRING(TITLE_MANAGER, "Title Manager") // File options STRING(BOOT_FILE, "Boot file") STRING(BOOT_FILE_DIRECT, "Boot file (Direct)") -STRING(BOOTSTRAP_FILE, "Bootstrap file") STRING(MOUNT_NITROFS, "Mount NitroFS") STRING(SHOW_NDS_INFO, "Show NDS file info") STRING(TRIM_NDS, "Trim NDS file")