2014-07-12 09:46:14 +02:00
|
|
|
#include "stdafx.h"
|
2014-12-30 21:15:00 +01:00
|
|
|
#include "Emu/Memory/Memory.h"
|
|
|
|
|
#include "Emu/SysCalls/Modules.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2014-12-30 21:15:00 +01:00
|
|
|
#include "cellSubdisplay.h"
|
2013-09-28 04:36:57 +02:00
|
|
|
|
2014-12-30 21:15:00 +01:00
|
|
|
Module *cellSubdisplay = nullptr;
|
2013-09-28 04:36:57 +02:00
|
|
|
|
|
|
|
|
int cellSubDisplayInit()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int cellSubDisplayEnd()
|
|
|
|
|
{
|
|
|
|
|
UNIMPLEMENTED_FUNC(cellSubdisplay);
|
|
|
|
|
return CELL_OK;
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-30 21:15:00 +01:00
|
|
|
int cellSubDisplayGetRequiredMemory(vm::ptr<CellSubDisplayParam> pParam)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2014-12-30 21:15:00 +01:00
|
|
|
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;
|
|
|
|
|
}
|
2013-09-28 04:36:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2014-12-30 21:15:00 +01:00
|
|
|
void cellSubdisplay_init(Module *pxThis)
|
2013-09-28 04:36:57 +02:00
|
|
|
{
|
2014-12-30 21:15:00 +01:00
|
|
|
cellSubdisplay = pxThis;
|
|
|
|
|
|
|
|
|
|
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);
|
2014-06-02 19:27:24 +02:00
|
|
|
}
|