diff options
| author | Herman Semenov <GermanAizek@yandex.ru> | 2024-04-12 15:42:47 +0300 |
|---|---|---|
| committer | Mike Lothian <mike@fireburn.co.uk> | 2024-12-20 15:24:58 +0000 |
| commit | 7bebaad1bf6bee9e53a9d6732581de9e108f4fa4 (patch) | |
| tree | bc609ab889489f06403bdf491728ab047eae4a62 /src/core/core.cpp | |
| parent | e9c2403b6e6e6a20044113f613e3954951c1a282 (diff) | |
Using reserve() for optimization inserts, marked unused pair items and minor code refactor
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 0cb81d6d8..83517d46c 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -80,6 +80,7 @@ FileSys::VirtualFile GetGameFileFromPath(const FileSys::VirtualFilesystem& vfs, if (filename == "00") { const auto dir = vfs->OpenDirectory(dir_name, FileSys::OpenMode::Read); std::vector<FileSys::VirtualFile> concat; + concat.reserve(0x10); for (u32 i = 0; i < 0x10; ++i) { const auto file_name = fmt::format("{:02X}", i); |
