diff options
author | Subv <subv2112@gmail.com> | 2014-12-20 01:57:42 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2014-12-21 22:39:08 +0100 |
commit | b3d1c8ba6a57946658a2b3823a1920bc3a22a982 (patch) | |
tree | a4bc68d2941c7f31151e4e9d4cc52be30608ff78 | |
parent | CFG: Load the Config savedata file if it already exists. (diff) | |
download | yuzu-b3d1c8ba6a57946658a2b3823a1920bc3a22a982.tar yuzu-b3d1c8ba6a57946658a2b3823a1920bc3a22a982.tar.gz yuzu-b3d1c8ba6a57946658a2b3823a1920bc3a22a982.tar.bz2 yuzu-b3d1c8ba6a57946658a2b3823a1920bc3a22a982.tar.lz yuzu-b3d1c8ba6a57946658a2b3823a1920bc3a22a982.tar.xz yuzu-b3d1c8ba6a57946658a2b3823a1920bc3a22a982.tar.zst yuzu-b3d1c8ba6a57946658a2b3823a1920bc3a22a982.zip |
-rw-r--r-- | src/core/hle/service/cfg_u.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/hle/service/cfg_u.cpp b/src/core/hle/service/cfg_u.cpp index ee97cf3e5..33f63a759 100644 --- a/src/core/hle/service/cfg_u.cpp +++ b/src/core/hle/service/cfg_u.cpp @@ -184,7 +184,7 @@ ResultCode GetConfigInfoBlock(u32 block_id, u32 size, u32 flag, u8* output) { if (itr->size <= 4) memcpy(output, &itr->offset_or_data, itr->size); else - memcpy(output, &cfg_config_file_buffer[config->data_entries_offset + itr->offset_or_data], itr->size); + memcpy(output, &cfg_config_file_buffer[itr->offset_or_data], itr->size); return RESULT_SUCCESS; } @@ -219,6 +219,8 @@ ResultCode CreateConfigInfoBlk(u32 block_id, u32 size, u32 flags, u8 const* data break; } + offset += config->data_entries_offset; + config->block_entries[config->total_entries].offset_or_data = offset; // Write the data at the new offset |