From d448c03c5d65a413b68e504d93929ef161858dcb Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 28 Mar 2019 15:37:13 -0700 Subject: [PATCH] results: Add fatal results --- include/stratosphere/results.hpp | 1 + .../stratosphere/results/fatal_results.hpp | 27 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 include/stratosphere/results/fatal_results.hpp diff --git a/include/stratosphere/results.hpp b/include/stratosphere/results.hpp index f0a656e7..66f833f8 100644 --- a/include/stratosphere/results.hpp +++ b/include/stratosphere/results.hpp @@ -21,4 +21,5 @@ #include "results/dmnt_results.hpp" #include "results/pm_results.hpp" #include "results/sm_results.hpp" +#include "results/fatal_results.hpp" #include "results/creport_results.hpp" \ No newline at end of file diff --git a/include/stratosphere/results/fatal_results.hpp b/include/stratosphere/results/fatal_results.hpp new file mode 100644 index 00000000..9dd0ab64 --- /dev/null +++ b/include/stratosphere/results/fatal_results.hpp @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2018 Atmosphère-NX + * + * This program is free software; you can redistribute it and/or modify it + * under the terms and conditions of the GNU General Public License, + * version 2, as published by the Free Software Foundation. + * + * This program is distributed in the hope it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#pragma once +#include + +static constexpr u32 Module_Fatal = 163; + +static constexpr Result ResultFatalAllocationFailed = MAKERESULT(Module_Fatal, 1); +static constexpr Result ResultFatalNullGraphicsBuffer = MAKERESULT(Module_Fatal, 2); +static constexpr Result ResultFatalAlreadyThrown = MAKERESULT(Module_Fatal, 3); +static constexpr Result ResultFatalTooManyEvents = MAKERESULT(Module_Fatal, 4); +static constexpr Result ResultFatalInRepairWithoutVolHeld = MAKERESULT(Module_Fatal, 5); +static constexpr Result ResultFatalInRepairWithoutTimeReviserCartridge = MAKERESULT(Module_Fatal, 6);