Merge pull request #302 from Lectem/fixoutputbools
fix incorrect values for bool outputs in services
This commit is contained in:
commit
7090fbd02d
@ -560,7 +560,7 @@ Result AM_QueryAvailableExternalTitleDatabase(bool* available)
|
||||
if(R_FAILED(ret = (Result)cmdbuf[1])) return ret;
|
||||
|
||||
// Only accept this if the command was a success
|
||||
if(available) *available = cmdbuf[2];
|
||||
if(available) *available = cmdbuf[2] & 0xFF;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
@ -635,8 +635,8 @@ Result APT_GetAppletInfo(NS_APPID appID, u64* pProgramID, u8* pMediaType, bool*
|
||||
{
|
||||
if (pProgramID) *pProgramID =(u64)cmdbuf[2]|((u64)cmdbuf[3]<<32);
|
||||
if (pMediaType) *pMediaType =cmdbuf[4];
|
||||
if (pRegistered) *pRegistered=cmdbuf[5];
|
||||
if (pLoadState) *pLoadState =cmdbuf[6];
|
||||
if (pRegistered) *pRegistered=cmdbuf[5] & 0xFF;
|
||||
if (pLoadState) *pLoadState =cmdbuf[6] & 0xFF;
|
||||
if (pAttributes) *pAttributes=cmdbuf[7];
|
||||
}
|
||||
|
||||
@ -678,7 +678,7 @@ Result APT_IsRegistered(NS_APPID appID, bool* out)
|
||||
|
||||
Result ret = aptSendCommand(cmdbuf);
|
||||
if (R_SUCCEEDED(ret))
|
||||
*out=cmdbuf[2];
|
||||
*out=cmdbuf[2] & 0xFF;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user