mirror of
https://github.com/naehrwert/scetool.git
synced 2025-04-23 21:27:46 +00:00
Header parser fix 4
This commit is contained in:
parent
5596b99859
commit
b00fa2e980
3 changed files with 16 additions and 0 deletions
Binary file not shown.
10
src/sce.h
10
src/sce.h
|
@ -326,6 +326,16 @@ typedef struct _app_info
|
|||
u64 padding;
|
||||
} app_info_t;
|
||||
|
||||
/*! Vender ID. */
|
||||
typedef struct _vendor_id
|
||||
{
|
||||
u8 territory;
|
||||
u8 unknown_1;
|
||||
u8 unknown_2;
|
||||
u8 gos_id;
|
||||
} vendor_id_t;
|
||||
|
||||
|
||||
/*! Control info. */
|
||||
typedef struct _control_info
|
||||
{
|
||||
|
|
|
@ -105,6 +105,12 @@ void _print_app_info(FILE *fp, app_info_t *ai)
|
|||
}
|
||||
else
|
||||
fprintf(fp, " Vendor-ID 0x%08X\n", _ES32(ai->vendor_id));
|
||||
|
||||
vendor_id_t *vendor = (vendor_id_t*)(&ai->vendor_id);
|
||||
_PRINT_RAW(fp, " Territory 0x%02x\n", (vendor->territory));
|
||||
//_PRINT_RAW(fp, " unknown_1 0x%02x\n", (vendor->unknown_1));
|
||||
//_PRINT_RAW(fp, " unknown_2 0x%02x\n", (vendor->unknown_2));
|
||||
_PRINT_RAW(fp, " Gos-id 0x%02x\n", (vendor->gos_id));
|
||||
|
||||
name = _get_name(_program_types, _ES32(ai->program_type));
|
||||
if(name != NULL)
|
||||
|
|
Loading…
Add table
Reference in a new issue