mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-09 03:07:35 -03:00
Camera: Set error code in CAMInit
Fixes Hunter's Trophy 2 crashing on boot
This commit is contained in:
parent
40d9664d1c
commit
e2d0871ca3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue