rpcsx/rpcs3/Emu/Cell/Modules/cellSearch.cpp

171 lines
3.8 KiB
C++
Raw Normal View History

2014-07-12 09:46:14 +02:00
#include "stdafx.h"
2015-02-22 09:50:26 +01:00
#include "Emu/System.h"
2016-03-21 20:43:03 +01:00
#include "Emu/Cell/PPUModule.h"
#include "cellSearch.h"
#include "cellSysutil.h"
2017-05-13 20:30:37 +02:00
logs::channel cellSearch("cellSearch");
s32 cellSearchInitialize(ppu_thread& ppu, CellSearchMode mode, u32 container, vm::ptr<CellSearchSystemCallback> func, vm::ptr<u32> userData)
{
cellSearch.warning("cellSearchInitialize()");
// TODO: Store the arguments somewhere so we can use them later.
//inform callback that search is alive
sysutil_register_cb([=](ppu_thread& ppu) -> s32
{
func(ppu, CELL_SEARCH_EVENT_INITIALIZE_RESULT, CELL_OK, vm::null, userData);
return CELL_OK;
});
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchFinalize()
{
cellSearch.warning("cellSearchFinalize()");
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchStartListSearch()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchStartContentSearchInList()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchStartContentSearch()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchStartSceneSearchInVideo()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchStartSceneSearch()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetContentInfoByOffset()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetContentInfoByContentId()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetOffsetByContentId()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetContentIdByOffset()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetContentInfoGameComment()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetMusicSelectionContext()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetMusicSelectionContextOfSingleTrack()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetContentInfoPath()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetContentInfoPathMovieThumb()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchPrepareFile()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchGetContentInfoDeveloperData()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
s32 cellSearchGetContentInfoSharable()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchCancel()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2015-02-22 09:50:26 +01:00
s32 cellSearchEnd()
{
UNIMPLEMENTED_FUNC(cellSearch);
return CELL_OK;
}
2016-03-21 20:43:03 +01:00
DECLARE(ppu_module_manager::cellSearch)("cellSearchUtility", []()
{
2016-03-21 20:43:03 +01:00
REG_FUNC(cellSearchUtility, cellSearchInitialize);
REG_FUNC(cellSearchUtility, cellSearchFinalize);
REG_FUNC(cellSearchUtility, cellSearchStartListSearch);
REG_FUNC(cellSearchUtility, cellSearchStartContentSearchInList);
REG_FUNC(cellSearchUtility, cellSearchStartContentSearch);
REG_FUNC(cellSearchUtility, cellSearchStartSceneSearchInVideo);
REG_FUNC(cellSearchUtility, cellSearchStartSceneSearch);
REG_FUNC(cellSearchUtility, cellSearchGetContentInfoByOffset);
REG_FUNC(cellSearchUtility, cellSearchGetContentInfoByContentId);
REG_FUNC(cellSearchUtility, cellSearchGetOffsetByContentId);
REG_FUNC(cellSearchUtility, cellSearchGetContentIdByOffset);
REG_FUNC(cellSearchUtility, cellSearchGetContentInfoGameComment);
REG_FUNC(cellSearchUtility, cellSearchGetMusicSelectionContext);
REG_FUNC(cellSearchUtility, cellSearchGetMusicSelectionContextOfSingleTrack);
REG_FUNC(cellSearchUtility, cellSearchGetContentInfoPath);
REG_FUNC(cellSearchUtility, cellSearchGetContentInfoPathMovieThumb);
REG_FUNC(cellSearchUtility, cellSearchPrepareFile);
REG_FUNC(cellSearchUtility, cellSearchGetContentInfoDeveloperData);
REG_FUNC(cellSearchUtility, cellSearchGetContentInfoSharable);
2016-03-21 20:43:03 +01:00
REG_FUNC(cellSearchUtility, cellSearchCancel);
REG_FUNC(cellSearchUtility, cellSearchEnd);
2015-02-22 12:38:14 +01:00
});