There was an error fetching the commit references. Please try again later.
fs: Fix RomFS building when zero byte files are present
When zero byte files are present, the key (offset) for that file is identical to the file right after. A std::map isn't able to fit key-value pairs with identical keys (offsets), therefore, the solution is to use std::multimap which permits multiple entries with the same key. This most prominently fixes Pokemon Sword and Shield weather with any RomFS mod applied.
Showing
- src/core/file_sys/fsmitm_romfsbuild.cpp 2 additions, 2 deletionssrc/core/file_sys/fsmitm_romfsbuild.cpp
- src/core/file_sys/fsmitm_romfsbuild.h 1 addition, 1 deletionsrc/core/file_sys/fsmitm_romfsbuild.h
- src/core/file_sys/vfs_concat.cpp 4 additions, 4 deletionssrc/core/file_sys/vfs_concat.cpp
- src/core/file_sys/vfs_concat.h 3 additions, 3 deletionssrc/core/file_sys/vfs_concat.h
Loading
Please register or sign in to comment