diff --git a/include/stratosphere/results.hpp b/include/stratosphere/results.hpp index f8eb0ba7..6140f72b 100644 --- a/include/stratosphere/results.hpp +++ b/include/stratosphere/results.hpp @@ -29,6 +29,7 @@ #include "results/lr_results.hpp" #include "results/ncm_results.hpp" #include "results/pm_results.hpp" +#include "results/settings_results.hpp" #include "results/sf_results.hpp" #include "results/sm_results.hpp" #include "results/vi_results.hpp" diff --git a/include/stratosphere/results/settings_results.hpp b/include/stratosphere/results/settings_results.hpp new file mode 100644 index 00000000..fe1fdac3 --- /dev/null +++ b/include/stratosphere/results/settings_results.hpp @@ -0,0 +1,41 @@ +/* + * 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_Settings = 105; + +static constexpr Result ResultSettingsItemNotFound = MAKERESULT(Module_Settings, 11); + +static constexpr Result ResultSettingsItemKeyAllocationFailed = MAKERESULT(Module_Settings, 101); +static constexpr Result ResultSettingsItemValueAllocationFailed = MAKERESULT(Module_Settings, 102); + +static constexpr Result ResultSettingsItemNameNull = MAKERESULT(Module_Settings, 201); +static constexpr Result ResultSettingsItemKeyNull = MAKERESULT(Module_Settings, 202); +static constexpr Result ResultSettingsItemValueNull = MAKERESULT(Module_Settings, 203); +static constexpr Result ResultSettingsItemKeyBufferNull = MAKERESULT(Module_Settings, 204); +static constexpr Result ResultSettingsItemValueBufferNull = MAKERESULT(Module_Settings, 205); + +static constexpr Result ResultSettingsItemNameEmpty = MAKERESULT(Module_Settings, 221); +static constexpr Result ResultSettingsItemKeyEmpty = MAKERESULT(Module_Settings, 222); + +static constexpr Result ResultSettingsItemNameTooLong = MAKERESULT(Module_Settings, 241); +static constexpr Result ResultSettingsItemKeyTooLong = MAKERESULT(Module_Settings, 242); + +static constexpr Result ResultSettingsItemNameInvalidFormat = MAKERESULT(Module_Settings, 261); +static constexpr Result ResultSettingsItemKeyInvalidFormat = MAKERESULT(Module_Settings, 262); +static constexpr Result ResultSettingsItemValueInvalidFormat = MAKERESULT(Module_Settings, 263);