2021-02-13 23:52:45 +04:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2020-12-31 11:31:47 +04: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 23:52:45 +04:00
|
|
|
namespace Kernel {
|
2020-12-31 11:31:47 +04:00
|
|
|
|
2021-02-13 23:52:45 +04:00
|
|
|
// Confirmed Switch kernel error codes
|
|
|
|
|
2021-05-02 10:03:43 +04:00
|
|
|
constexpr ResultCode ResultOutOfSessions{ErrorModule::Kernel, 7};
|
|
|
|
constexpr ResultCode ResultInvalidArgument{ErrorModule::Kernel, 14};
|
2021-01-22 04:15:25 +04:00
|
|
|
constexpr ResultCode ResultNoSynchronizationObject{ErrorModule::Kernel, 57};
|
2020-12-31 11:31:47 +04:00
|
|
|
constexpr ResultCode ResultTerminationRequested{ErrorModule::Kernel, 59};
|
2021-02-13 23:52:45 +04:00
|
|
|
constexpr ResultCode ResultInvalidSize{ErrorModule::Kernel, 101};
|
2020-12-31 11:31:47 +04:00
|
|
|
constexpr ResultCode ResultInvalidAddress{ErrorModule::Kernel, 102};
|
2021-02-04 03:41:27 +04:00
|
|
|
constexpr ResultCode ResultOutOfResource{ErrorModule::Kernel, 103};
|
2021-02-13 23:52:45 +04:00
|
|
|
constexpr ResultCode ResultOutOfMemory{ErrorModule::Kernel, 104};
|
2021-05-02 10:03:43 +04:00
|
|
|
constexpr ResultCode ResultOutOfHandles{ErrorModule::Kernel, 105};
|
2020-12-31 11:31:47 +04:00
|
|
|
constexpr ResultCode ResultInvalidCurrentMemory{ErrorModule::Kernel, 106};
|
2021-05-02 10:03:43 +04:00
|
|
|
constexpr ResultCode ResultInvalidNewMemoryPermission{ErrorModule::Kernel, 108};
|
|
|
|
constexpr ResultCode ResultInvalidMemoryRegion{ErrorModule::Kernel, 110};
|
2021-01-22 04:15:25 +04:00
|
|
|
constexpr ResultCode ResultInvalidPriority{ErrorModule::Kernel, 112};
|
|
|
|
constexpr ResultCode ResultInvalidCoreId{ErrorModule::Kernel, 113};
|
2020-12-31 11:31:47 +04:00
|
|
|
constexpr ResultCode ResultInvalidHandle{ErrorModule::Kernel, 114};
|
2021-02-13 23:52:45 +04:00
|
|
|
constexpr ResultCode ResultInvalidPointer{ErrorModule::Kernel, 115};
|
2021-01-22 04:15:25 +04:00
|
|
|
constexpr ResultCode ResultInvalidCombination{ErrorModule::Kernel, 116};
|
2020-12-31 11:31:47 +04:00
|
|
|
constexpr ResultCode ResultTimedOut{ErrorModule::Kernel, 117};
|
|
|
|
constexpr ResultCode ResultCancelled{ErrorModule::Kernel, 118};
|
2021-02-13 23:52:45 +04:00
|
|
|
constexpr ResultCode ResultOutOfRange{ErrorModule::Kernel, 119};
|
2020-12-31 11:31:47 +04:00
|
|
|
constexpr ResultCode ResultInvalidEnumValue{ErrorModule::Kernel, 120};
|
2021-02-13 23:52:45 +04:00
|
|
|
constexpr ResultCode ResultNotFound{ErrorModule::Kernel, 121};
|
2021-01-22 04:15:25 +04:00
|
|
|
constexpr ResultCode ResultBusy{ErrorModule::Kernel, 122};
|
2021-05-02 10:03:43 +04:00
|
|
|
constexpr ResultCode ResultSessionClosed{ErrorModule::Kernel, 123};
|
2020-12-31 11:31:47 +04:00
|
|
|
constexpr ResultCode ResultInvalidState{ErrorModule::Kernel, 125};
|
2021-05-02 10:03:43 +04:00
|
|
|
constexpr ResultCode ResultReservedUsed{ErrorModule::Kernel, 126};
|
|
|
|
constexpr ResultCode ResultPortClosed{ErrorModule::Kernel, 131};
|
|
|
|
constexpr ResultCode ResultLimitReached{ErrorModule::Kernel, 132};
|
|
|
|
constexpr ResultCode ResultInvalidId{ErrorModule::Kernel, 519};
|
2020-12-31 11:31:47 +04:00
|
|
|
|
2021-02-13 23:52:45 +04:00
|
|
|
} // namespace Kernel
|