forked from Mirror/GodMode9
gamecart.c: fix indentation, a small merging mistake
This commit is contained in:
parent
9f52deedad
commit
0bbbc7c324
@ -73,8 +73,7 @@ u32 GetCartInfoString(char* info, size_t info_size, CartData* cdata) {
|
|||||||
"Product Code : %.10s\n"
|
"Product Code : %.10s\n"
|
||||||
"Revision : %lu\n"
|
"Revision : %lu\n"
|
||||||
"Cart ID : %08lX\n"
|
"Cart ID : %08lX\n"
|
||||||
"Platform : %s\n"
|
"Platform : %s\n",
|
||||||
"GM9 Version : " VERSION "\n",
|
|
||||||
ncsd->mediaId, ncch->productcode, cdata_i->rom_version, cdata_i->cart_id,
|
ncsd->mediaId, ncch->productcode, cdata_i->rom_version, cdata_i->cart_id,
|
||||||
(ncch->flags[4] == 0x2) ? "N3DS" : "O3DS");
|
(ncch->flags[4] == 0x2) ? "N3DS" : "O3DS");
|
||||||
} else if (cdata->cart_type & CART_NTR) {
|
} else if (cdata->cart_type & CART_NTR) {
|
||||||
@ -85,8 +84,7 @@ u32 GetCartInfoString(char* info, size_t info_size, CartData* cdata) {
|
|||||||
"Product Code : %.6s\n"
|
"Product Code : %.6s\n"
|
||||||
"Revision : %u\n"
|
"Revision : %u\n"
|
||||||
"Cart ID : %08lX\n"
|
"Cart ID : %08lX\n"
|
||||||
"Platform : %s\n"
|
"Platform : %s\n",
|
||||||
"GM9 Version : " VERSION "\n",
|
|
||||||
nds->game_title, nds->game_code, nds->rom_version, cdata_i->cart_id,
|
nds->game_title, nds->game_code, nds->rom_version, cdata_i->cart_id,
|
||||||
(nds->unit_code == 0x2) ? "DSi Enhanced" : (nds->unit_code == 0x3) ? "DSi Exclusive" : "DS");
|
(nds->unit_code == 0x2) ? "DSi Enhanced" : (nds->unit_code == 0x3) ? "DSi Exclusive" : "DS");
|
||||||
} else return 1;
|
} else return 1;
|
||||||
@ -419,7 +417,7 @@ u32 ReadCartInfo(u8* buffer, u64 offset, u64 count, CartData* cdata) {
|
|||||||
|
|
||||||
if (offset >= len) return 0;
|
if (offset >= len) return 0;
|
||||||
if (offset + count > len) count = len - offset;
|
if (offset + count > len) count = len - offset;
|
||||||
memcpy(buffer, info + offset, count);
|
memcpy(buffer, info + offset, count);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user