Camera: Set error code in CAMInit

Fixes Hunter's Trophy 2 crashing on boot
This commit is contained in:
Exzap 2024-12-07 07:48:30 +01:00
parent 40d9664d1c
commit e2d0871ca3

View File

@ -181,7 +181,7 @@ namespace camera
sint32 CAMInit(uint32 cameraId, CAMInitInfo_t* camInitInfo, uint32be* error)
{
CameraInstance* camInstance = new CameraInstance(camInitInfo->width, camInitInfo->height, camInitInfo->handlerFuncPtr);
*error = 0; // Hunter's Trophy 2 will fail to boot if we don't set this
std::unique_lock<std::recursive_mutex> _lock(g_mutex_camera);
if (g_cameraCounter == 0)
{