| 1 | /* |
| 2 | * Copyright (c) 2018-2020 Atmosphère-NX |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify it |
| 5 | * under the terms and conditions of the GNU General Public License, |
| 6 | * version 2, as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT |
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| 11 | * more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ |
| 16 | |
| 17 | #pragma once |
| 18 | #include <vapours/results/results_common.hpp> |
| 19 | |
| 20 | namespace ams::dmnt { |
| 21 | |
| 22 | R_DEFINE_NAMESPACE_RESULT_MODULE(13); |
| 23 | |
| 24 | R_DEFINE_ERROR_RESULT(Unknown, 1); |
| 25 | R_DEFINE_ERROR_RESULT(DebuggingDisabled, 2); |
| 26 | |
| 27 | /* Atmosphere extension. */ |
| 28 | namespace cheat { |
| 29 | |
| 30 | R_DEFINE_ABSTRACT_ERROR_RANGE(CheatError, 6500, 6599); |
| 31 | R_DEFINE_ERROR_RESULT(CheatNotAttached, 6500); |
| 32 | R_DEFINE_ERROR_RESULT(CheatNullBuffer, 6501); |
| 33 | R_DEFINE_ERROR_RESULT(CheatInvalidBuffer, 6502); |
| 34 | R_DEFINE_ERROR_RESULT(CheatUnknownId, 6503); |
| 35 | R_DEFINE_ERROR_RESULT(CheatOutOfResource, 6504); |
| 36 | R_DEFINE_ERROR_RESULT(CheatInvalid, 6505); |
| 37 | R_DEFINE_ERROR_RESULT(CheatCannotDisable, 6506); |
| 38 | |
| 39 | R_DEFINE_ABSTRACT_ERROR_RANGE(FrozenAddressError, 6600, 6699); |
| 40 | R_DEFINE_ERROR_RESULT(FrozenAddressInvalidWidth, 6600); |
| 41 | R_DEFINE_ERROR_RESULT(FrozenAddressAlreadyExists, 6601); |
| 42 | R_DEFINE_ERROR_RESULT(FrozenAddressNotFound, 6602); |
| 43 | R_DEFINE_ERROR_RESULT(FrozenAddressOutOfResource, 6603); |
| 44 | |
| 45 | R_DEFINE_ABSTRACT_ERROR_RANGE(VirtualMachineError, 6700, 6799); |
| 46 | R_DEFINE_ERROR_RESULT(VirtualMachineInvalidConditionDepth, 6700); |
| 47 | |
| 48 | } |
| 49 | |
| 50 | } |
| 51 | |