2021-02-13 00:43:01 +01:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2020-12-28 05:56:57 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/result.h"
|
|
|
|
|
2021-02-13 00:43:01 +01:00
|
|
|
namespace Kernel {
|
2020-12-28 05:56:57 +01:00
|
|
|
|
2021-02-13 00:43:01 +01:00
|
|
|
// Confirmed Switch kernel error codes
|
|
|
|
|
2021-04-11 20:41:48 +02:00
|
|
|
constexpr ResultCode ResultOutOfSessions{ErrorModule::Kernel, 7};
|
|
|
|
constexpr ResultCode ResultInvalidArgument{ErrorModule::Kernel, 14};
|
2021-01-16 07:02:33 +01:00
|
|
|
constexpr ResultCode ResultNoSynchronizationObject{ErrorModule::Kernel, 57};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultTerminationRequested{ErrorModule::Kernel, 59};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultInvalidSize{ErrorModule::Kernel, 101};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidAddress{ErrorModule::Kernel, 102};
|
2021-02-01 01:55:11 +01:00
|
|
|
constexpr ResultCode ResultOutOfResource{ErrorModule::Kernel, 103};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultOutOfMemory{ErrorModule::Kernel, 104};
|
2021-04-11 20:41:48 +02:00
|
|
|
constexpr ResultCode ResultOutOfHandles{ErrorModule::Kernel, 105};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidCurrentMemory{ErrorModule::Kernel, 106};
|
2021-04-11 20:41:48 +02:00
|
|
|
constexpr ResultCode ResultInvalidNewMemoryPermission{ErrorModule::Kernel, 108};
|
|
|
|
constexpr ResultCode ResultInvalidMemoryRegion{ErrorModule::Kernel, 110};
|
2021-01-01 11:06:06 +01:00
|
|
|
constexpr ResultCode ResultInvalidPriority{ErrorModule::Kernel, 112};
|
2021-01-03 10:49:18 +01:00
|
|
|
constexpr ResultCode ResultInvalidCoreId{ErrorModule::Kernel, 113};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidHandle{ErrorModule::Kernel, 114};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultInvalidPointer{ErrorModule::Kernel, 115};
|
2021-01-16 07:02:33 +01:00
|
|
|
constexpr ResultCode ResultInvalidCombination{ErrorModule::Kernel, 116};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultTimedOut{ErrorModule::Kernel, 117};
|
|
|
|
constexpr ResultCode ResultCancelled{ErrorModule::Kernel, 118};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultOutOfRange{ErrorModule::Kernel, 119};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidEnumValue{ErrorModule::Kernel, 120};
|
2021-02-13 00:43:01 +01:00
|
|
|
constexpr ResultCode ResultNotFound{ErrorModule::Kernel, 121};
|
2021-01-16 07:02:33 +01:00
|
|
|
constexpr ResultCode ResultBusy{ErrorModule::Kernel, 122};
|
2021-04-11 20:41:48 +02:00
|
|
|
constexpr ResultCode ResultSessionClosed{ErrorModule::Kernel, 123};
|
2020-12-28 05:56:57 +01:00
|
|
|
constexpr ResultCode ResultInvalidState{ErrorModule::Kernel, 125};
|
2021-04-11 20:41:48 +02:00
|
|
|
constexpr ResultCode ResultReservedUsed{ErrorModule::Kernel, 126};
|
2021-04-24 02:00:15 +02:00
|
|
|
constexpr ResultCode ResultPortClosed{ErrorModule::Kernel, 131};
|
2021-04-11 20:41:48 +02:00
|
|
|
constexpr ResultCode ResultLimitReached{ErrorModule::Kernel, 132};
|
|
|
|
constexpr ResultCode ResultInvalidId{ErrorModule::Kernel, 519};
|
2020-12-28 05:56:57 +01:00
|
|
|
|
2021-02-13 00:43:01 +01:00
|
|
|
} // namespace Kernel
|