2019-12-09 11:57:37 +00:00
|
|
|
/*
|
2020-01-24 10:10:40 +00:00
|
|
|
* Copyright (c) 2018-2020 Atmosphère-NX
|
2019-12-09 11:57:37 +00:00
|
|
|
*
|
|
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-23 03:47:08 +00:00
|
|
|
#include <vapours/results/results_common.hpp>
|
2019-12-09 11:57:37 +00:00
|
|
|
|
|
|
|
namespace ams::ncm {
|
|
|
|
|
|
|
|
R_DEFINE_NAMESPACE_RESULT_MODULE(5);
|
|
|
|
|
2020-03-08 08:06:23 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(InvalidContentStorageBase, 1);
|
2019-12-09 11:57:37 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(PlaceHolderAlreadyExists, 2);
|
|
|
|
R_DEFINE_ERROR_RESULT(PlaceHolderNotFound, 3);
|
|
|
|
R_DEFINE_ERROR_RESULT(ContentAlreadyExists, 4);
|
|
|
|
R_DEFINE_ERROR_RESULT(ContentNotFound, 5);
|
|
|
|
R_DEFINE_ERROR_RESULT(ContentMetaNotFound, 7);
|
|
|
|
R_DEFINE_ERROR_RESULT(AllocationFailed, 8);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnknownStorage, 12);
|
|
|
|
|
|
|
|
R_DEFINE_ERROR_RESULT(InvalidContentStorage, 100);
|
|
|
|
R_DEFINE_ERROR_RESULT(InvalidContentMetaDatabase, 110);
|
2020-03-08 08:06:23 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(InvalidPackageFormat, 130);
|
2020-04-04 06:40:46 +01:00
|
|
|
R_DEFINE_ERROR_RESULT(InvalidContentHash, 140);
|
2020-03-08 08:06:23 +00:00
|
|
|
|
2020-04-04 06:40:46 +01:00
|
|
|
R_DEFINE_ERROR_RESULT(InvalidInstallTaskState, 160);
|
2020-03-08 08:06:23 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(InvalidPlaceHolderFile, 170);
|
2019-12-09 11:57:37 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(BufferInsufficient, 180);
|
2020-03-08 08:06:23 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(WriteToReadOnlyContentStorage, 190);
|
2020-04-04 06:40:46 +01:00
|
|
|
R_DEFINE_ERROR_RESULT(NotEnoughInstallSpace, 200);
|
|
|
|
R_DEFINE_ERROR_RESULT(SystemUpdateNotFoundInPackage, 210);
|
|
|
|
R_DEFINE_ERROR_RESULT(ContentInfoNotFound, 220);
|
|
|
|
R_DEFINE_ERROR_RESULT(DeltaNotFound, 237);
|
2019-12-09 11:57:37 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(InvalidContentMetaKey, 240);
|
2020-04-04 06:40:46 +01:00
|
|
|
R_DEFINE_ERROR_RESULT(IgnorableInstallTicketFailure, 280);
|
2019-12-09 11:57:37 +00:00
|
|
|
|
2020-03-08 08:06:23 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(ContentStorageBaseNotFound, 310);
|
2020-04-04 06:40:46 +01:00
|
|
|
R_DEFINE_ERROR_RESULT(ListPartiallyNotCommitted, 330);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnexpectedContentMetaPrepared, 360);
|
|
|
|
R_DEFINE_ERROR_RESULT(InvalidFirmwareVariation, 380);
|
2020-03-08 08:06:23 +00:00
|
|
|
|
2019-12-09 11:57:37 +00:00
|
|
|
R_DEFINE_ERROR_RANGE(ContentStorageNotActive, 250, 258);
|
2020-03-08 08:06:23 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(GameCardContentStorageNotActive, 251);
|
|
|
|
R_DEFINE_ERROR_RESULT(BuiltInSystemContentStorageNotActive, 252);
|
|
|
|
R_DEFINE_ERROR_RESULT(BuiltInUserContentStorageNotActive, 253);
|
|
|
|
R_DEFINE_ERROR_RESULT(SdCardContentStorageNotActive, 254);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnknownContentStorageNotActive, 258);
|
2019-12-09 11:57:37 +00:00
|
|
|
|
|
|
|
R_DEFINE_ERROR_RANGE(ContentMetaDatabaseNotActive, 260, 268);
|
2020-03-08 08:06:23 +00:00
|
|
|
R_DEFINE_ERROR_RESULT(GameCardContentMetaDatabaseNotActive, 261);
|
|
|
|
R_DEFINE_ERROR_RESULT(BuiltInSystemContentMetaDatabaseNotActive, 262);
|
|
|
|
R_DEFINE_ERROR_RESULT(BuiltInUserContentMetaDatabaseNotActive, 263);
|
|
|
|
R_DEFINE_ERROR_RESULT(SdCardContentMetaDatabaseNotActive, 264);
|
|
|
|
R_DEFINE_ERROR_RESULT(UnknownContentMetaDatabaseNotActive, 268);
|
2019-12-09 11:57:37 +00:00
|
|
|
|
2020-04-04 06:40:46 +01:00
|
|
|
R_DEFINE_ERROR_RANGE(InstallTaskCancelled, 290, 299);
|
|
|
|
R_DEFINE_ERROR_RESULT(CreatePlaceHolderCancelled, 291);
|
|
|
|
R_DEFINE_ERROR_RESULT(WritePlaceHolderCancelled, 292);
|
|
|
|
|
2019-12-09 11:57:37 +00:00
|
|
|
R_DEFINE_ERROR_RANGE(InvalidArgument, 8181, 8191);
|
|
|
|
R_DEFINE_ERROR_RESULT(InvalidOffset, 8182);
|
|
|
|
|
|
|
|
}
|