mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
NOTE: I included some changes of the forks of O1L and Dante38490 to my fork. However, a conflict appeared while merging their sources with the ones of DH. I had to resolve this conflict manually and push all the changes like a new commit, that's why there changes weren't recorded individually and (probably) won't appear at in the commits list. I am very sorry for this, I'll try to avoid this in the future. In order to preserve the authors of those commits, I write this list here: O1L: Dummy Modules (cellAudio, cellSaveData, and more)23ece01a0b784fc571b3Dante38490: Spotted and fixed an issue in git-version-gen.cmd44e8867125Regarding my changes: * New lv2 SysCalls implemented (and others improved) * SDATA unpacker implemented * Changed layout of sc_table
61 lines
1.4 KiB
C++
61 lines
1.4 KiB
C++
#include "stdafx.h"
|
|
#include "Emu/SysCalls/SysCalls.h"
|
|
#include "Emu/SysCalls/SC_FUNC.h"
|
|
|
|
void cellPhotoImport_init();
|
|
Module cellPhotoImport(0xf02b, cellPhotoImport_init);
|
|
|
|
// Return Codes
|
|
enum
|
|
{
|
|
CELL_PHOTO_IMPORT_RET_OK = 0,
|
|
CELL_PHOTO_IMPORT_RET_CANCEL = 1,
|
|
CELL_PHOTO_IMPORT_ERROR_BUSY = 0x8002c701,
|
|
CELL_PHOTO_IMPORT_ERROR_INTERNAL = 0x8002c702,
|
|
CELL_PHOTO_IMPORT_ERROR_PARAM = 0x8002c703,
|
|
CELL_PHOTO_IMPORT_ERROR_ACCESS_ERROR = 0x8002c704,
|
|
CELL_PHOTO_IMPORT_ERROR_COPY = 0x8002c705,
|
|
CELL_PHOTO_IMPORT_ERROR_INITIALIZE = 0x8002c706,
|
|
};
|
|
|
|
// Datatypes
|
|
struct CellPhotoImportFileDataSub
|
|
{
|
|
int width;
|
|
int height;
|
|
//CellPhotoImportFormatType format;
|
|
//CellPhotoImportTexRot rotate;
|
|
};
|
|
|
|
struct CellPhotoImportFileData
|
|
{
|
|
char dstFileName; //[CELL_FS_MAX_FS_FILE_NAME_LENGTH];
|
|
char photo_title; //[CELL_PHOTO_IMPORT_PHOTO_TITLE_MAX_LENGTH*3];
|
|
char game_title; //[CELL_PHOTO_IMPORT_GAME_TITLE_MAX_SIZE];
|
|
char game_comment; //[CELL_PHOTO_IMPORT_GAME_COMMENT_MAX_SIZE];
|
|
CellPhotoImportFileDataSub* data_sub;
|
|
};
|
|
|
|
struct CellPhotoImportSetParam
|
|
{
|
|
unsigned int fileSizeMax;
|
|
};
|
|
|
|
// Functions
|
|
int _cellPhotoImport()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellPhotoImport);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int _cellPhotoImport2()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellPhotoImport);
|
|
return CELL_OK;
|
|
}
|
|
|
|
void cellPhotoImport_init()
|
|
{
|
|
cellPhotoImport.AddFunc(0x0783bce0, _cellPhotoImport);
|
|
cellPhotoImport.AddFunc(0x1ab8df55, _cellPhotoImport2);
|
|
} |