mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-13 03:12:39 +01:00
Camera: Set error code in CAMInit
Fixes Hunter's Trophy 2 crashing on boot
This commit is contained in:
parent
40d9664d1c
commit
e2d0871ca3
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user