Code style fixes.

This commit is contained in:
Rajko Stojadinovic 2018-07-21 03:02:08 +02:00
parent 02ce33bf20
commit adfad3cffa
2 changed files with 12 additions and 14 deletions

View File

@ -46,10 +46,10 @@ typedef struct {
} NcmContentRecord;
typedef struct {
u16 numExtraBytes; //of struct that comes after this one
u16 numContentRecords; //number of NcmContentRecord entries after the extra bytes
u16 numMetaRecords; //number of NcmMetaRecord entries that come after after the NcmContentRecords
u16 padding; //always zero
u16 numExtraBytes; //Size of optional struct that comes after this one.
u16 numContentRecords; //Number of NcmContentRecord entries after the extra bytes.
u16 numMetaRecords; //Number of NcmMetaRecord entries that come after the NcmContentRecords.
u16 padding; //Always zero.
} NcmContentMetaRecordsHeader;
typedef struct {

View File

@ -472,9 +472,9 @@ Result ncmContentMetaDatabaseList(NcmContentMetaDatabase* db, u32 titleType, u64
u64 magic;
u64 cmd_id;
u32 titleType;
u64 TID;
u64 TID_LOW;
u64 TID_HIGH;
u64 titleIdExact;
u64 titleIdLow;
u64 titleIdHigh;
} *raw;
raw = ipcPrepareHeader(&c, sizeof(*raw));
@ -482,13 +482,12 @@ Result ncmContentMetaDatabaseList(NcmContentMetaDatabase* db, u32 titleType, u64
raw->magic = SFCI_MAGIC;
raw->cmd_id = 5;
raw->titleType = titleType;
raw->TID = titleIdExact;
raw->TID_LOW = titleIdLow;
raw->TID_HIGH = titleIdHigh;
raw->titleIdExact = titleIdExact;
raw->titleIdLow = titleIdLow;
raw->titleIdHigh = titleIdHigh;
Result rc = serviceIpcDispatch(&db->s);
if (R_SUCCEEDED(rc))
{
if (R_SUCCEEDED(rc)) {
IpcParsedCommand r;
ipcParse(&r);
@ -501,8 +500,7 @@ Result ncmContentMetaDatabaseList(NcmContentMetaDatabase* db, u32 titleType, u64
rc = resp->result;
if (R_SUCCEEDED(rc))
{
if (R_SUCCEEDED(rc)) {
if (numEntriesTotal)
*numEntriesTotal = resp->numEntriesTotal;
if (numEntriesWritten)