mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-05 10:52:15 +02:00
Code style fixes.
This commit is contained in:
parent
02ce33bf20
commit
adfad3cffa
@ -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 {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user