[Core/Dialog/ELF/FileSystems/HLE/HW/Util] Added const reference for function params

This commit is contained in:
Herman Semenov
2023-12-14 14:22:24 +03:00
parent 5a0d54be83
commit af41281761
43 changed files with 83 additions and 83 deletions

View File

@@ -30,7 +30,7 @@
const int sectorSize = 2048;
bool parseLBN(std::string filename, u32 *sectorStart, u32 *readSize) {
bool parseLBN(const std::string &filename, u32 *sectorStart, u32 *readSize) {
// The format of this is: "/sce_lbn" "0x"? HEX* ANY* "_size" "0x"? HEX* ANY*
// That means that "/sce_lbn/_size1/" is perfectly valid.
// Most commonly, it looks like /sce_lbn0x10_size0x100 or /sce_lbn10_size100 (always hex.)