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 "cellSysutil.h"
@ -7,7 +7,7 @@
LOG_CHANNEL(cellPhotoDecode);
// Return Codes
enum
enum CellPhotoDecodeError : u32
{
CELL_PHOTO_DECODE_ERROR_BUSY = 0x8002c901,
CELL_PHOTO_DECODE_ERROR_INTERNAL = 0x8002c902,
@ -17,6 +17,25 @@ enum
CELL_PHOTO_DECODE_ERROR_DECODE = 0x8002c906,
};
template<>
void fmt_class_string<CellPhotoDecodeError>::format(std::string& out, u64 arg)
{
format_enum(out, arg, [](auto error)
{
switch (error)
{
STR_CASE(CELL_PHOTO_DECODE_ERROR_BUSY);
STR_CASE(CELL_PHOTO_DECODE_ERROR_INTERNAL);
STR_CASE(CELL_PHOTO_DECODE_ERROR_PARAM);
STR_CASE(CELL_PHOTO_DECODE_ERROR_ACCESS_ERROR);
STR_CASE(CELL_PHOTO_DECODE_ERROR_INITIALIZE);
STR_CASE(CELL_PHOTO_DECODE_ERROR_DECODE);
}
return unknown;
});
}
struct CellPhotoDecodeSetParam
{
vm::bptr<void> dstBuffer;