mirror of
https://github.com/RPCSX/rpcsx.git
synced 2025-12-06 07:12:14 +01:00
* 41 new dummy modules created.
NOTE: I have detached the previous 4 dummy modules of my last commit
(1a85ccbbf4) from the project since they will consume space of the
executable, and compilation time and don't provide anything useful yet,
the same applies to this commit. The only reason to provide this dummy
modules is to avoid that developers have to spend too much time on
creating the template of the module before implementing functions. If
you want to implement a function of any of these modules, add the
corresponding file to the project first.
284 lines
5.6 KiB
C++
284 lines
5.6 KiB
C++
#include "stdafx.h"
|
|
#include "Emu/SysCalls/SysCalls.h"
|
|
#include "Emu/SysCalls/SC_FUNC.h"
|
|
|
|
void cellGem_init();
|
|
Module cellGem(0x005a, cellGem_init);
|
|
|
|
// Error Codes
|
|
enum
|
|
{
|
|
CELL_GEM_ERROR_RESOURCE_ALLOCATION_FAILED = 0x80121801,
|
|
CELL_GEM_ERROR_ALREADY_INITIALIZED = 0x80121802,
|
|
CELL_GEM_ERROR_UNINITIALIZED = 0x80121803,
|
|
CELL_GEM_ERROR_INVALID_PARAMETER = 0x80121804,
|
|
CELL_GEM_ERROR_INVALID_ALIGNMENT = 0x80121805,
|
|
CELL_GEM_ERROR_UPDATE_NOT_FINISHED = 0x80121806,
|
|
CELL_GEM_ERROR_UPDATE_NOT_STARTED = 0x80121807,
|
|
CELL_GEM_ERROR_CONVERT_NOT_FINISHED = 0x80121808,
|
|
CELL_GEM_ERROR_CONVERT_NOT_STARTED = 0x80121809,
|
|
CELL_GEM_ERROR_WRITE_NOT_FINISHED = 0x8012180A,
|
|
CELL_GEM_ERROR_NOT_A_HUE = 0x8012180B,
|
|
};
|
|
|
|
int cellGemCalibrate()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemClearStatusFlags()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemConvertVideoFinish()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemConvertVideoStart()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemEnableCameraPitchAngleCorrection()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemEnableMagnetometer()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemEnd()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemFilterState()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemForceRGB()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetAccelerometerPositionInDevice()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetAllTrackableHues()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetCameraState()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetEnvironmentLightingColor()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetHuePixels()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetImageState()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetInertialState()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetInfo()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetMemorySize()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetRGB()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetRumble()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetState()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetStatusFlags()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemGetTrackerHue()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemHSVtoRGB()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemInit()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemInvalidateCalibration()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemIsTrackableHue()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemPrepareCamera()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemPrepareVideoConvert()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemReset()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemSetRumble()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemSetYaw()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemTrackHues()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemUpdateFinish()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemUpdateStart()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
int cellGemWriteExternalPort()
|
|
{
|
|
UNIMPLEMENTED_FUNC(cellGem);
|
|
return CELL_OK;
|
|
}
|
|
|
|
void cellGem_init()
|
|
{
|
|
//cellGem.AddFunc(, cellGemAttributeInit);
|
|
cellGem.AddFunc(0xafa99ead, cellGemCalibrate);
|
|
cellGem.AddFunc(0x9b9714a4, cellGemClearStatusFlags);
|
|
cellGem.AddFunc(0x1a13d010, cellGemConvertVideoFinish);
|
|
cellGem.AddFunc(0x6dce048c, cellGemConvertVideoStart);
|
|
cellGem.AddFunc(0x4219de31, cellGemEnableCameraPitchAngleCorrection);
|
|
cellGem.AddFunc(0x1a2518a2, cellGemEnableMagnetometer);
|
|
cellGem.AddFunc(0xe1f85a80, cellGemEnd);
|
|
cellGem.AddFunc(0x6fc4c791, cellGemFilterState);
|
|
cellGem.AddFunc(0xce6d7791, cellGemForceRGB);
|
|
cellGem.AddFunc(0x6a5b7048, cellGemGetAccelerometerPositionInDevice);
|
|
cellGem.AddFunc(0x2d2c2764, cellGemGetAllTrackableHues);
|
|
cellGem.AddFunc(0x8befac67, cellGemGetCameraState);
|
|
cellGem.AddFunc(0x02eb41bb, cellGemGetEnvironmentLightingColor);
|
|
cellGem.AddFunc(0xb8ef56a6, cellGemGetHuePixels);
|
|
cellGem.AddFunc(0x92cc4b34, cellGemGetImageState);
|
|
cellGem.AddFunc(0xd37b127a, cellGemGetInertialState);
|
|
cellGem.AddFunc(0x9e1dff96, cellGemGetInfo);
|
|
cellGem.AddFunc(0x2e0a170d, cellGemGetMemorySize);
|
|
cellGem.AddFunc(0x1b30cc22, cellGemGetRGB);
|
|
cellGem.AddFunc(0x6db6b007, cellGemGetRumble);
|
|
cellGem.AddFunc(0x6441d38d, cellGemGetState);
|
|
cellGem.AddFunc(0xfee33481, cellGemGetStatusFlags);
|
|
cellGem.AddFunc(0x18ea899a, cellGemGetTrackerHue);
|
|
//cellGem.AddFunc(, cellGemGetVideoConvertSize);
|
|
cellGem.AddFunc(0xc7622586, cellGemHSVtoRGB);
|
|
cellGem.AddFunc(0x13ea7c64, cellGemInit);
|
|
cellGem.AddFunc(0xe3e4f0d6, cellGemInvalidateCalibration);
|
|
cellGem.AddFunc(0xfb5887f9, cellGemIsTrackableHue);
|
|
cellGem.AddFunc(0xa03ef587, cellGemPrepareCamera);
|
|
cellGem.AddFunc(0xc07896f9, cellGemPrepareVideoConvert);
|
|
//cellGem.AddFunc(, cellGemReadExternalPortDeviceInfo);
|
|
cellGem.AddFunc(0xde54e2fc, cellGemReset);
|
|
cellGem.AddFunc(0x49609306, cellGemSetRumble);
|
|
cellGem.AddFunc(0x77e08704, cellGemSetYaw);
|
|
cellGem.AddFunc(0x928ac5f8, cellGemTrackHues);
|
|
cellGem.AddFunc(0x41ae9c31, cellGemUpdateFinish);
|
|
cellGem.AddFunc(0x0ecd2261, cellGemUpdateStart);
|
|
//cellGem.AddFunc(, cellGemVideoConvertAttributeInit);
|
|
//cellGem.AddFunc(, cellGemVideoConvertAttributeInitRgba);
|
|
cellGem.AddFunc(0x1f6328d8, cellGemWriteExternalPort);
|
|
|
|
} |