diff options
author | Reiko Asakura | 2020-10-02 16:32:27 -0400 |
---|---|---|
committer | Reiko Asakura | 2020-10-02 16:32:27 -0400 |
commit | 7cf15103d02c21bf9ddc0821941a1b60edda2bc4 (patch) | |
tree | e302428c78b9e156bcaf81281bd4eb144bdec490 | |
parent | Add sceAppMgrSendNotificationRequest (diff) | |
download | vds-libraries-7cf15103d02c21bf9ddc0821941a1b60edda2bc4.tar.gz |
SceIniFileProcessor: fixes for type and names
-rw-r--r-- | include/user/ini_file_processor.h | 19 | ||||
-rw-r--r-- | nids/360/SceIniFileProcessor.yml | 8 |
2 files changed, 14 insertions, 13 deletions
diff --git a/include/user/ini_file_processor.h b/include/user/ini_file_processor.h index f20c43f..8e1ce9c 100644 --- a/include/user/ini_file_processor.h +++ b/include/user/ini_file_processor.h @@ -64,7 +64,7 @@ public: int terminateForError(); /** - * Get INI as a char array + * Get INI as a string. The returned buffer is not null-terminated. * * @param[out] ini - memory where INI data is stored * @param[out] size - size of the INI data @@ -74,7 +74,7 @@ public: int serialize(const char** ini, size_t* size); /** - * Process INI as a char array + * Process INI as a string. Size is without null-terminator. * * @param[in] ini - memory where INI data is stored * @param[in] size - size of the INI data @@ -92,7 +92,7 @@ public: * * @return 0 on success, < 0 on error. */ - int openFile(const char* path, const char* mode, int unk); + int open(const char* path, const char* mode, int unk); /** * Create new INI file and open it. If file is already present, it will be overwritten @@ -104,17 +104,17 @@ public: * @return 0 on success, < 0 on error. * */ - int createFile(const char* path, const char* mode, int unk); + int create(const char* path, const char* mode, int unk); /** - * Close file + * Close INI file * * @return 0 on success, < 0 on error. */ - int closeFile(); + int close(); /** - * Clean temp files + * Cleanup temp files * * @return 0 on success, < 0 on error. */ @@ -161,11 +161,12 @@ public: * * @param[in] key - key string * @param[out] val - buffer to store value string if found - * @param[in] size - size of outValueBuf + * @param[in] size - size of the output buffer + * @param[in] offset - offset into the value corresponding to key * * @return 0 on success, < 0 on error. */ - int get(const char* key, char* val, size_t size); + int get(const char* key, char* val, size_t size, size_t offset); /** * Parse key and corresponding value, one key per call until eof diff --git a/nids/360/SceIniFileProcessor.yml b/nids/360/SceIniFileProcessor.yml index 4620450..a5d4c9f 100644 --- a/nids/360/SceIniFileProcessor.yml +++ b/nids/360/SceIniFileProcessor.yml @@ -7,20 +7,20 @@ modules: functions: _ZN3sce3Ini13InitParameterC1Ev: 0x14146AF5 _ZN3sce3Ini13InitParameterC2Ev: 0x9F8FC03F - _ZN3sce3Ini16IniFileProcessor10createFileEPKcS3_i: 0xFD8DE2F8 _ZN3sce3Ini16IniFileProcessor10initializeEPKNS0_13InitParameterE: 0x0975D396 _ZN3sce3Ini16IniFileProcessor11deserializeEPKcj: 0xB785FE67 _ZN3sce3Ini16IniFileProcessor17terminateForErrorEv: 0x48A6BDCB _ZN3sce3Ini16IniFileProcessor3addEPKcS3_: 0x703E1BAE _ZN3sce3Ini16IniFileProcessor3delEPKc: 0xC2B3A41C - _ZN3sce3Ini16IniFileProcessor3getEPKcPcj: 0x7F22CED1 + _ZN3sce3Ini16IniFileProcessor3getEPKcPcjj: 0x7F22CED1 _ZN3sce3Ini16IniFileProcessor3setEPKcS3_: 0xDBC5F9A8 + _ZN3sce3Ini16IniFileProcessor4openEPKcS3_i: 0x51B791E8 _ZN3sce3Ini16IniFileProcessor4sizeEv: 0xD7648B61 + _ZN3sce3Ini16IniFileProcessor5closeEv: 0xEDFAD6B4 _ZN3sce3Ini16IniFileProcessor5parseEPcS2_j: 0xD5C7B3EE _ZN3sce3Ini16IniFileProcessor5resetEv: 0xB48C756B + _ZN3sce3Ini16IniFileProcessor6createEPKcS3_i: 0xFD8DE2F8 _ZN3sce3Ini16IniFileProcessor7cleanupEv: 0xA51840C7 - _ZN3sce3Ini16IniFileProcessor8openFileEPKcS3_i: 0x51B791E8 - _ZN3sce3Ini16IniFileProcessor9closeFileEv: 0xEDFAD6B4 _ZN3sce3Ini16IniFileProcessor9serializeEPPKcPj: 0x109B4E83 _ZN3sce3Ini16IniFileProcessor9terminateEv: 0x2BEF7391 _ZN3sce3Ini16IniFileProcessorC1Ev: 0xA0F71A2C |