-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
#include "read_pat.h" | ||
|
||
static void part4_entry(FILE* fp, unsigned int entry_index, json_t *js) | ||
{ | ||
uint32_t unk1 = read_u32(fp, js, "unk1"); | ||
uint32_t unk2 = read_u32(fp, js, "unk2"); | ||
printf(" entry %d: unk1=%d, unk2=%d\n", entry_index, unk1, unk2); | ||
} | ||
|
||
void part4(FILE* fp, char* pat_path, json_t *js) | ||
{ | ||
(void)pat_path; | ||
uint32_t nb_entries = read_u32(fp, js, "nb_entries"); | ||
printf("part4: nb_entries = %d\n", nb_entries); | ||
if (nb_entries > 0) | ||
printf("Error: part4_entries are not supported.\n"); | ||
|
||
unsigned int i; | ||
for (i = 0; i < nb_entries; i++) | ||
part4_entry(fp, i, js_enter(js, idx_to_str("entry_", i))); | ||
} |