rpcsx/rpcs3/Emu/SysCalls/Modules/cellSubdisplay.cpp

92 lines
1.9 KiB
C++
Raw Normal View History

2014-07-12 09:46:14 +02:00
#include "stdafx.h"
#include "Emu/Memory/Memory.h"
#include "Emu/SysCalls/Modules.h"
#include "cellSubdisplay.h"
extern Module cellSubdisplay;
int cellSubDisplayInit()
{
UNIMPLEMENTED_FUNC(cellSubdisplay);
return CELL_OK;
}
int cellSubDisplayEnd()
{
UNIMPLEMENTED_FUNC(cellSubdisplay);
return CELL_OK;
}
int cellSubDisplayGetRequiredMemory(vm::ptr<CellSubDisplayParam> pParam)
{
cellSubdisplay.Warning("cellSubDisplayGetRequiredMemory(pParam_addr=0x%x)", pParam.addr());
if (pParam->version == CELL_SUBDISPLAY_VERSION_0002)
{
return CELL_SUBDISPLAY_0002_MEMORY_CONTAINER_SIZE;
}
else
{
return CELL_SUBDISPLAY_0001_MEMORY_CONTAINER_SIZE;
}
}
int cellSubDisplayStart()
{
UNIMPLEMENTED_FUNC(cellSubdisplay);
return CELL_OK;
}
int cellSubDisplayStop()
{
UNIMPLEMENTED_FUNC(cellSubdisplay);
return CELL_OK;
}
int cellSubDisplayGetVideoBuffer()
{
UNIMPLEMENTED_FUNC(cellSubdisplay);
return CELL_OK;
}
int cellSubDisplayAudioOutBlocking()
{
UNIMPLEMENTED_FUNC(cellSubdisplay);
return CELL_OK;
}
int cellSubDisplayAudioOutNonBlocking()
{
UNIMPLEMENTED_FUNC(cellSubdisplay);
return CELL_OK;
}
int cellSubDisplayGetPeerNum()
{
UNIMPLEMENTED_FUNC(cellSubdisplay);
return CELL_OK;
}
int cellSubDisplayGetPeerList()
{
UNIMPLEMENTED_FUNC(cellSubdisplay);
return CELL_OK;
}
Module cellSubdisplay("cellSubdisplay", []()
{
cellSubdisplay.AddFunc(0xf9a7e8a5, cellSubDisplayInit);
cellSubdisplay.AddFunc(0x551d80a5, cellSubDisplayEnd);
cellSubdisplay.AddFunc(0x6595ce22, cellSubDisplayGetRequiredMemory);
cellSubdisplay.AddFunc(0xa5bccb47, cellSubDisplayStart);
cellSubdisplay.AddFunc(0x6d85ddb3, cellSubDisplayStop);
cellSubdisplay.AddFunc(0x938ac642, cellSubDisplayGetVideoBuffer);
cellSubdisplay.AddFunc(0xaee1e0c2, cellSubDisplayAudioOutBlocking);
cellSubdisplay.AddFunc(0x5468d6b0, cellSubDisplayAudioOutNonBlocking);
cellSubdisplay.AddFunc(0x8a264d71, cellSubDisplayGetPeerNum);
cellSubdisplay.AddFunc(0xe2485f79, cellSubDisplayGetPeerList);
});