Skip to content

Commit e2d0871

Browse files
committed
Camera: Set error code in CAMInit
Fixes Hunter's Trophy 2 crashing on boot
1 parent 40d9664 commit e2d0871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cafe/OS/libs/camera/camera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ namespace camera
181181
sint32 CAMInit(uint32 cameraId, CAMInitInfo_t* camInitInfo, uint32be* error)
182182
{
183183
CameraInstance* camInstance = new CameraInstance(camInitInfo->width, camInitInfo->height, camInitInfo->handlerFuncPtr);
184-
184+
*error = 0; // Hunter's Trophy 2 will fail to boot if we don't set this
185185
std::unique_lock<std::recursive_mutex> _lock(g_mutex_camera);
186186
if (g_cameraCounter == 0)
187187
{

0 commit comments

Comments
 (0)