add a gazillion more error_code

This commit is contained in:
Megamouse 2020-07-16 12:14:57 +02:00
parent a00ebacef3
commit d854a39500
72 changed files with 2040 additions and 1349 deletions

View file

@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "Emu/Cell/PPUModule.h"
#include "Emu/Cell/lv2/sys_spu.h"
@ -7,20 +7,36 @@
LOG_CHANNEL(cellOvis);
// Return Codes
enum
enum CellOvisError : u32
{
CELL_OVIS_ERROR_INVAL = 0x80410402,
CELL_OVIS_ERROR_ABORT = 0x8041040C,
CELL_OVIS_ERROR_ALIGN = 0x80410410,
};
s32 cellOvisGetOverlayTableSize(vm::cptr<char> elf)
template<>
void fmt_class_string<CellOvisError>::format(std::string& out, u64 arg)
{
format_enum(out, arg, [](auto error)
{
switch (error)
{
STR_CASE(CELL_OVIS_ERROR_INVAL);
STR_CASE(CELL_OVIS_ERROR_ABORT);
STR_CASE(CELL_OVIS_ERROR_ALIGN);
}
return unknown;
});
}
error_code cellOvisGetOverlayTableSize(vm::cptr<char> elf)
{
cellOvis.todo("cellOvisGetOverlayTableSize(elf=%s)", elf);
return CELL_OK;
}
s32 cellOvisInitializeOverlayTable(vm::ptr<void> ea_ovly_table, vm::cptr<char> elf)
error_code cellOvisInitializeOverlayTable(vm::ptr<void> ea_ovly_table, vm::cptr<char> elf)
{
cellOvis.todo("cellOvisInitializeOverlayTable(ea_ovly_table=*0x%x, elf=%s)", ea_ovly_table, elf);
return CELL_OK;