// Copyright (C) 2026 SharpEmu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
namespace SharpEmu.HLE;
///
/// Represents synthetic kernel-style result codes used by the Gen5 runtime.
/// Prefixed with ORBIS_GEN2 to distinguish from PS4-oriented ORBIS_* codes
/// used by other emulators such as shadPS4.
///
public enum OrbisGen2Result : int
{
///
/// Indicates successful completion.
///
ORBIS_GEN2_OK = 0,
///
/// Indicates that the requested export was not found.
///
ORBIS_GEN2_ERROR_NOT_FOUND = unchecked((int)0x80020002),
///
/// Indicates that one or more arguments were invalid.
///
ORBIS_GEN2_ERROR_INVALID_ARGUMENT = unchecked((int)0x80020003),
///
/// Indicates that an item already exists.
///
ORBIS_GEN2_ERROR_ALREADY_EXISTS = unchecked((int)0x80020004),
///
/// Indicates that behavior is recognized but not implemented yet.
///
ORBIS_GEN2_ERROR_NOT_IMPLEMENTED = unchecked((int)0x8002FFFF),
///
/// Indicates that memory access failed.
///
ORBIS_GEN2_ERROR_MEMORY_FAULT = unchecked((int)0x80020101),
///
/// Indicates that CPU execution trapped on an unsupported instruction.
///
ORBIS_GEN2_ERROR_CPU_TRAP = unchecked((int)0x80020102),
}