mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Cleanup a few GPU error codes.
This commit is contained in:
1 parent
b8e4c72f04
commit
ec009bc299
5 files changed
+14
-7
No files matched your search
@@ -32,7 +32,6 @@
|
||||
#define CTRL_MODE_DIGITAL 0
|
||||
#define CTRL_MODE_ANALOG 1
|
||||
|
||||
const int PSP_CTRL_ERROR_INVALID_MODE = 0x80000107;
|
||||
const int PSP_CTRL_ERROR_INVALID_IDLE_PTR = 0x80000023;
|
||||
|
||||
const u32 NUM_CTRL_BUFFERS = 64;
|
||||
@@ -351,7 +350,7 @@ u32 sceCtrlSetSamplingMode(u32 mode)
|
||||
|
||||
DEBUG_LOG(HLE, "sceCtrlSetSamplingMode(%i)", mode);
|
||||
if (mode > 1)
|
||||
return PSP_CTRL_ERROR_INVALID_MODE;
|
||||
return SCE_KERNEL_ERROR_INVALID_MODE;
|
||||
|
||||
retVal = analogEnabled == true ? CTRL_MODE_ANALOG : CTRL_MODE_DIGITAL;
|
||||
analogEnabled = mode == CTRL_MODE_ANALOG ? true : false;
|
||||
|
||||
@@ -30,6 +30,7 @@ enum
|
||||
SCE_KERNEL_ERROR_OUT_OF_MEMORY = 0x80000022,
|
||||
SCE_KERNEL_ERROR_INVALID_ID = 0x80000100,
|
||||
SCE_KERNEL_ERROR_INVALID_SIZE = 0x80000104,
|
||||
SCE_KERNEL_ERROR_INVALID_MODE = 0x80000107,
|
||||
SCE_KERNEL_ERROR_INVALID_VALUE = 0x800001fe,
|
||||
SCE_KERNEL_ERROR_INVALID_ARGUMENT = 0x800001ff,
|
||||
SCE_KERNEL_ERROR_ERROR = 0x80020001,
|
||||
|
||||
@@ -29,7 +29,6 @@ const int PSP_POWER_ERROR_PRIVATE_SLOT = 0x80000023;
|
||||
const int PSP_POWER_ERROR_EMPTY_SLOT = 0x80000025;
|
||||
const int PSP_POWER_ERROR_INVALID_CB = 0x80000100;
|
||||
const int PSP_POWER_ERROR_INVALID_SLOT = 0x80000102;
|
||||
const int PSP_POWER_ERROR_INVALID_TYPE = 0x80000107;
|
||||
|
||||
const int PSP_POWER_CB_AC_POWER = 0x00001000;
|
||||
const int PSP_POWER_CB_BATTERY_EXIST = 0x00000080;
|
||||
@@ -167,7 +166,7 @@ int sceKernelPowerLock(int lockType) {
|
||||
if (lockType == 0) {
|
||||
return 0;
|
||||
} else {
|
||||
return PSP_POWER_ERROR_INVALID_TYPE;
|
||||
return SCE_KERNEL_ERROR_INVALID_MODE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -176,7 +175,7 @@ int sceKernelPowerUnlock(int lockType) {
|
||||
if (lockType == 0) {
|
||||
return 0;
|
||||
} else {
|
||||
return PSP_POWER_ERROR_INVALID_TYPE;
|
||||
return SCE_KERNEL_ERROR_INVALID_MODE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+10
-1
@@ -16,13 +16,19 @@ void init() {
|
||||
}
|
||||
|
||||
u32 GPUCommon::DrawSync(int mode) {
|
||||
if (mode < 0 || mode > 1)
|
||||
return SCE_KERNEL_ERROR_INVALID_MODE;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int GPUCommon::ListSync(int listid, int mode)
|
||||
{
|
||||
if (mode < 0 || mode > 1)
|
||||
return SCE_KERNEL_ERROR_INVALID_MODE;
|
||||
|
||||
// TODO
|
||||
if (mode != 1)
|
||||
if (mode == 0)
|
||||
return 0;
|
||||
|
||||
return 0;
|
||||
@@ -84,6 +90,9 @@ u32 GPUCommon::Continue()
|
||||
|
||||
u32 GPUCommon::Break(int mode)
|
||||
{
|
||||
if (mode < 0 || mode > 1)
|
||||
return SCE_KERNEL_ERROR_INVALID_MODE;
|
||||
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
NullGPU::NullGPU()
|
||||
{
|
||||
interruptsEnabled_ = true;
|
||||
}
|
||||
|
||||
NullGPU::~NullGPU()
|
||||
|
||||
Reference in new issue
Block a user