Skip to content

Commit

Permalink
Camera: Set error code in CAMInit
Browse files Browse the repository at this point in the history
Fixes Hunter's Trophy 2 crashing on boot
  • Loading branch information
Exzap committed Dec 7, 2024
1 parent 40d9664 commit e2d0871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cafe/OS/libs/camera/camera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit e2d0871

Please sign in to comment.