2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2015-02-22 09:50:26 +01:00
|
|
|
#include "Emu/Memory/Memory.h"
|
|
|
|
|
#include "Emu/System.h"
|
|
|
|
|
#include "Emu/SysCalls/Modules.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
extern Module cellSearch;
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
// Error Codes
|
|
|
|
|
enum
|
|
|
|
|
{
|
2014-04-04 15:25:38 +02:00
|
|
|
CELL_SEARCH_OK = 0,
|
|
|
|
|
CELL_SEARCH_CANCELED = 1,
|
|
|
|
|
CELL_SEARCH_ERROR_PARAM = 0x8002C801,
|
|
|
|
|
CELL_SEARCH_ERROR_BUSY = 0x8002C802,
|
|
|
|
|
CELL_SEARCH_ERROR_NO_MEMORY = 0x8002C803,
|
|
|
|
|
CELL_SEARCH_ERROR_UNKNOWN_MODE = 0x8002C804,
|
|
|
|
|
CELL_SEARCH_ERROR_ALREADY_INITIALIZED = 0x8002C805,
|
|
|
|
|
CELL_SEARCH_ERROR_NOT_INITIALIZED = 0x8002C806,
|
|
|
|
|
CELL_SEARCH_ERROR_FINALIZING = 0x8002C807,
|
|
|
|
|
CELL_SEARCH_ERROR_NOT_SUPPORTED_SEARCH = 0x8002C808,
|
|
|
|
|
CELL_SEARCH_ERROR_CONTENT_OBSOLETE = 0x8002C809,
|
|
|
|
|
CELL_SEARCH_ERROR_CONTENT_NOT_FOUND = 0x8002C80A,
|
|
|
|
|
CELL_SEARCH_ERROR_NOT_LIST = 0x8002C80B,
|
|
|
|
|
CELL_SEARCH_ERROR_OUT_OF_RANGE = 0x8002C80C,
|
|
|
|
|
CELL_SEARCH_ERROR_INVALID_SEARCHID = 0x8002C80D,
|
|
|
|
|
CELL_SEARCH_ERROR_ALREADY_GOT_RESULT = 0x8002C80E,
|
|
|
|
|
CELL_SEARCH_ERROR_NOT_SUPPORTED_CONTEXT = 0x8002C80F,
|
|
|
|
|
CELL_SEARCH_ERROR_INVALID_CONTENTTYPE = 0x8002C810,
|
|
|
|
|
CELL_SEARCH_ERROR_DRM = 0x8002C811,
|
|
|
|
|
CELL_SEARCH_ERROR_TAG = 0x8002C812,
|
|
|
|
|
CELL_SEARCH_ERROR_GENERIC = 0x8002C8FF,
|
2013-09-28 04:36:57 +02:00
|
|
|
};
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchInitialize()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchFinalize()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchStartListSearch()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchStartContentSearchInList()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchStartContentSearch()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchStartSceneSearchInVideo()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchStartSceneSearch()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetContentInfoByOffset()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetContentInfoByContentId()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetOffsetByContentId()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetContentIdByOffset()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetContentInfoGameComment()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetMusicSelectionContext()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetMusicSelectionContextOfSingleTrack()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetContentInfoPath()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetContentInfoPathMovieThumb()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchPrepareFile()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchGetContentInfoDeveloperData()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchCancel()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
s32 cellSearchEnd()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSearch);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2015-02-22 09:50:26 +01:00
|
|
|
Module cellSearch("cellSearch", []()
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2015-02-20 14:58:40 +01:00
|
|
|
REG_FUNC(cellSearch, cellSearchInitialize);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchFinalize);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchStartListSearch);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchStartContentSearchInList);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchStartContentSearch);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchStartSceneSearchInVideo);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchStartSceneSearch);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetContentInfoByOffset);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetContentInfoByContentId);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetOffsetByContentId);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetContentIdByOffset);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetContentInfoGameComment);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetMusicSelectionContext);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetMusicSelectionContextOfSingleTrack);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetContentInfoPath);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetContentInfoPathMovieThumb);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchPrepareFile);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchGetContentInfoDeveloperData);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchCancel);
|
|
|
|
|
REG_FUNC(cellSearch, cellSearchEnd);
|
2015-02-22 12:38:14 +01:00
|
|
|
});
|