2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2016-03-21 20:43:03 +01:00
|
|
|
#include "Emu/Cell/PPUModule.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2018-02-09 15:49:37 +01:00
|
|
|
|
2017-05-15 13:58:32 +02:00
|
|
|
|
2017-05-13 20:30:37 +02:00
|
|
|
logs::channel cellPhotoImportUtil("cellPhotoImportUtil");
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
// Return Codes
|
|
|
|
|
enum
|
|
|
|
|
{
|
2014-04-04 15:25:38 +02:00
|
|
|
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,
|
2013-09-28 04:36:57 +02:00
|
|
|
};
|
|
|
|
|
|
2013-11-09 02:05:58 +01:00
|
|
|
// Datatypes
|
|
|
|
|
struct CellPhotoImportFileDataSub
|
2018-02-09 15:49:37 +01:00
|
|
|
{
|
2013-11-09 02:05:58 +01:00
|
|
|
int width;
|
|
|
|
|
int height;
|
2018-02-09 15:49:37 +01:00
|
|
|
//CellPhotoImportFormatType format;
|
|
|
|
|
//CellPhotoImportTexRot rotate;
|
|
|
|
|
};
|
2013-11-09 02:05:58 +01:00
|
|
|
|
|
|
|
|
struct CellPhotoImportFileData
|
2018-02-09 15:49:37 +01:00
|
|
|
{
|
|
|
|
|
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;
|
2013-11-09 02:05:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct CellPhotoImportSetParam
|
2018-02-09 15:49:37 +01:00
|
|
|
{
|
2013-11-09 02:05:58 +01:00
|
|
|
unsigned int fileSizeMax;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Functions
|
2015-07-30 03:43:03 +02:00
|
|
|
s32 cellPhotoImport()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-30 03:43:03 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellPhotoImportUtil);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-30 03:43:03 +02:00
|
|
|
s32 cellPhotoImport2()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-30 03:43:03 +02:00
|
|
|
UNIMPLEMENTED_FUNC(cellPhotoImportUtil);
|
2013-09-28 04:36:57 +02:00
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2016-03-21 20:43:03 +01:00
|
|
|
DECLARE(ppu_module_manager::cellPhotoImportUtil)("cellPhotoImportUtil", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-07-30 03:43:03 +02:00
|
|
|
REG_FUNC(cellPhotoImportUtil, cellPhotoImport);
|
|
|
|
|
REG_FUNC(cellPhotoImportUtil, cellPhotoImport2);
|
|
|
|
|
});
|