From 5c59d42a30e88841df3886f488b8d3c9739e7b41 Mon Sep 17 00:00:00 2001 From: suchmememanyskill Date: Sat, 22 Jan 2022 16:05:08 +0100 Subject: [PATCH] Step 4: Fix the ini parser also why am i using steps --- Modified BDK files.md | 10 ++++++++-- bdk/utils/ini.c | 2 ++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Modified BDK files.md b/Modified BDK files.md index 936a5ac..12ba54f 100644 --- a/Modified BDK files.md +++ b/Modified BDK files.md @@ -1,6 +1,6 @@ For future reference if updating the BDK -// TODO: fatfs, ini parser, memory map +// TODO: memory map(?) ## /bdk/sec/SE.c&h - Added se_aes_cmac @@ -14,4 +14,10 @@ For future reference if updating the BDK ## /bdk/libs/fatfs/ff.c&h - Added f_fdisk_mod -- Stubbed exfat partition creation \ No newline at end of file +- Stubbed exfat partition creation + +## /bdk/utils/ini.c +- Added initial 'unknown' section to parse prod.keys + +## /bdk/libs +- Added nx-savedata from [Lockpick_RCM](https://github.com/shchmue/Lockpick_RCM) \ No newline at end of file diff --git a/bdk/utils/ini.c b/bdk/utils/ini.c index 123c0d5..d388988 100644 --- a/bdk/utils/ini.c +++ b/bdk/utils/ini.c @@ -101,6 +101,8 @@ int ini_parse(link_t *dst, char *ini_path, bool is_dir) } lbuf = malloc(512); + csec = _ini_create_section(dst, csec, "Unknown", INI_CHOICE); + list_init(&csec->kvs); do {