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;
|
} NcmContentRecord;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u16 numExtraBytes; //of struct that comes after this one
|
u16 numExtraBytes; //Size of optional struct that comes after this one.
|
||||||
u16 numContentRecords; //number of NcmContentRecord entries after the extra bytes
|
u16 numContentRecords; //Number of NcmContentRecord entries after the extra bytes.
|
||||||
u16 numMetaRecords; //number of NcmMetaRecord entries that come after after the NcmContentRecords
|
u16 numMetaRecords; //Number of NcmMetaRecord entries that come after the NcmContentRecords.
|
||||||
u16 padding; //always zero
|
u16 padding; //Always zero.
|
||||||
} NcmContentMetaRecordsHeader;
|
} NcmContentMetaRecordsHeader;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
@ -472,9 +472,9 @@ Result ncmContentMetaDatabaseList(NcmContentMetaDatabase* db, u32 titleType, u64
|
|||||||
u64 magic;
|
u64 magic;
|
||||||
u64 cmd_id;
|
u64 cmd_id;
|
||||||
u32 titleType;
|
u32 titleType;
|
||||||
u64 TID;
|
u64 titleIdExact;
|
||||||
u64 TID_LOW;
|
u64 titleIdLow;
|
||||||
u64 TID_HIGH;
|
u64 titleIdHigh;
|
||||||
} *raw;
|
} *raw;
|
||||||
|
|
||||||
raw = ipcPrepareHeader(&c, sizeof(*raw));
|
raw = ipcPrepareHeader(&c, sizeof(*raw));
|
||||||
@ -482,13 +482,12 @@ Result ncmContentMetaDatabaseList(NcmContentMetaDatabase* db, u32 titleType, u64
|
|||||||
raw->magic = SFCI_MAGIC;
|
raw->magic = SFCI_MAGIC;
|
||||||
raw->cmd_id = 5;
|
raw->cmd_id = 5;
|
||||||
raw->titleType = titleType;
|
raw->titleType = titleType;
|
||||||
raw->TID = titleIdExact;
|
raw->titleIdExact = titleIdExact;
|
||||||
raw->TID_LOW = titleIdLow;
|
raw->titleIdLow = titleIdLow;
|
||||||
raw->TID_HIGH = titleIdHigh;
|
raw->titleIdHigh = titleIdHigh;
|
||||||
|
|
||||||
Result rc = serviceIpcDispatch(&db->s);
|
Result rc = serviceIpcDispatch(&db->s);
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc)) {
|
||||||
{
|
|
||||||
IpcParsedCommand r;
|
IpcParsedCommand r;
|
||||||
ipcParse(&r);
|
ipcParse(&r);
|
||||||
|
|
||||||
@ -501,8 +500,7 @@ Result ncmContentMetaDatabaseList(NcmContentMetaDatabase* db, u32 titleType, u64
|
|||||||
|
|
||||||
rc = resp->result;
|
rc = resp->result;
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc))
|
if (R_SUCCEEDED(rc)) {
|
||||||
{
|
|
||||||
if (numEntriesTotal)
|
if (numEntriesTotal)
|
||||||
*numEntriesTotal = resp->numEntriesTotal;
|
*numEntriesTotal = resp->numEntriesTotal;
|
||||||
if (numEntriesWritten)
|
if (numEntriesWritten)
|
||||||
|
Loading…
Reference in New Issue
Block a user