From b85b522643743ef95e62c4cbe70f216800a1cf1d Mon Sep 17 00:00:00 2001 From: ITotalJustice <47043333+ITotalJustice@users.noreply.github.com> Date: Thu, 4 Sep 2025 09:40:39 +0100 Subject: [PATCH] app: remove ams erpt disable as it is possible to cause ams to fatal if a crash report fails to write. --- assets/romfs/i18n/pt.json | 1 - sphaira/source/app.cpp | 18 ------------------ 2 files changed, 19 deletions(-) diff --git a/assets/romfs/i18n/pt.json b/assets/romfs/i18n/pt.json index eb46ec7..404b00d 100644 --- a/assets/romfs/i18n/pt.json +++ b/assets/romfs/i18n/pt.json @@ -282,7 +282,6 @@ "Convert to standard crypto": "Converter para crypto padrão", "Lower master key": "Reduzir master keys", "Lower system version": "Reduzir versão do sistema", - "Disable erpt_reports": "Desabilitar \"erpt_reports\"", "Homebrew": "Homebrews", "Apps": "Homebrews", diff --git a/sphaira/source/app.cpp b/sphaira/source/app.cpp index d3f7b5e..522bf24 100644 --- a/sphaira/source/app.cpp +++ b/sphaira/source/app.cpp @@ -1944,24 +1944,6 @@ void App::DisplayAdvancedOptions(bool left_side) { options->Add("Export options"_i18n, [left_side](){ App::DisplayDumpOptions(left_side); }, "Change the export options."_i18n); - - static const char* erpt_path = "/atmosphere/erpt_reports"; - options->Add("Disable erpt_reports"_i18n, g_app->m_fs->FileExists(erpt_path), [](bool& enable){ - if (enable) { - Result rc; - // it's possible for erpt to generate a report in between deleting the folder and creating the file. - for (int i = 0; i < 10; i++) { - g_app->m_fs->DeleteDirectoryRecursively(erpt_path); - if (R_SUCCEEDED(rc = g_app->m_fs->CreateFile(erpt_path))) { - break; - } - } - enable = R_SUCCEEDED(rc); - } else { - g_app->m_fs->DeleteFile(erpt_path); - g_app->m_fs->CreateDirectory(erpt_path); - } - }, "Disables error reports generated in /atmosphere/erpt_reports."_i18n); } void App::DisplayInstallOptions(bool left_side) {