Formatting

This commit is contained in:
Maschell 2020-06-17 22:16:10 +02:00
parent 76709548f3
commit 1a462d9d7d
2 changed files with 3 additions and 3 deletions

View File

@ -68,7 +68,7 @@ ON_APPLICATION_END() {
void fillXmlForTitleID(uint32_t titleid_upper, uint32_t titleid_lower, ACPMetaXml *out_buf) { void fillXmlForTitleID(uint32_t titleid_upper, uint32_t titleid_lower, ACPMetaXml *out_buf) {
int32_t id = getIDByLowerTitleID(titleid_lower); int32_t id = getIDByLowerTitleID(titleid_lower);
if(id < 0){ if (id < 0) {
DEBUG_FUNCTION_LINE("Failed to get id by titleid\n"); DEBUG_FUNCTION_LINE("Failed to get id by titleid\n");
return; return;
} }
@ -282,7 +282,7 @@ DECL_FUNCTION(int, FSOpenFile, FSClient *client, FSCmdBlock *block, char *path,
sscanf(id, "%08X", &lowerTitleID); sscanf(id, "%08X", &lowerTitleID);
int32_t idVal = getIDByLowerTitleID(lowerTitleID); int32_t idVal = getIDByLowerTitleID(lowerTitleID);
if (idVal < 0) { if (idVal < 0) {
DEBUG_FUNCTION_LINE("Failed to find id for titleID %08X\n",lowerTitleID); DEBUG_FUNCTION_LINE("Failed to find id for titleID %08X\n", lowerTitleID);
} else { } else {
if (FSOpenFile_for_ID(idVal, ending, handle) < 0) { if (FSOpenFile_for_ID(idVal, ending, handle) < 0) {
return res; return res;

View File

@ -153,7 +153,7 @@ bool initCompressedFileReadInformation(fileReadInformation *info) {
int32_t loadFileIntoBuffer(uint32_t lowerTitleID, const char *filepath, char *buffer, int sizeToRead) { int32_t loadFileIntoBuffer(uint32_t lowerTitleID, const char *filepath, char *buffer, int sizeToRead) {
int32_t id = getIDByLowerTitleID(lowerTitleID); int32_t id = getIDByLowerTitleID(lowerTitleID);
if(id < 0){ if (id < 0) {
DEBUG_FUNCTION_LINE("Failed to get id by titleid\n"); DEBUG_FUNCTION_LINE("Failed to get id by titleid\n");
return -3; return -3;
} }