Added more initializations in cellCamera

This commit is contained in:
Survanium90 2014-10-04 11:31:27 +04:00
parent aed76b2a0a
commit 70e5068e37
1 changed files with 71 additions and 0 deletions

View File

@ -53,18 +53,30 @@ int cellCameraOpen()
int cellCameraOpenEx()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraClose()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraGetDeviceGUID()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
@ -72,6 +84,9 @@ int cellCameraGetType(s32 dev_num, vm::ptr<CellCameraType> type)
{
cellCamera->Warning("cellCameraGetType(dev_num=%d, type_addr=0x%x)", dev_num, type);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
switch (Ini.CameraType.GetValue())
{
case 1: *type = CELL_CAMERA_EYETOY; break;
@ -110,18 +125,30 @@ int cellCameraIsStarted()
int cellCameraGetAttribute()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraSetAttribute()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraGetBufferSize()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
@ -134,6 +161,10 @@ int cellCameraGetBufferInfo()
int cellCameraGetBufferInfoEx()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
@ -164,60 +195,100 @@ int cellCameraSetExtensionUnit()
int cellCameraReset()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraStart()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraRead()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraReadEx()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraReadComplete()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraStop()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraSetNotifyEventQueue()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraRemoveNotifyEventQueue()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraSetNotifyEventQueue2()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}
int cellCameraRemoveNotifyEventQueue2()
{
UNIMPLEMENTED_FUNC(cellCamera);
if (!cellCameraInstance.m_bInitialized)
return CELL_CAMERA_ERROR_NOT_INIT;
return CELL_OK;
}