summaryrefslogtreecommitdiff
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorHerman Semenov <GermanAizek@yandex.ru>2024-04-12 15:42:47 +0300
committerMike Lothian <mike@fireburn.co.uk>2024-12-20 15:24:58 +0000
commit7bebaad1bf6bee9e53a9d6732581de9e108f4fa4 (patch)
treebc609ab889489f06403bdf491728ab047eae4a62 /src/core/core.cpp
parente9c2403b6e6e6a20044113f613e3954951c1a282 (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.cpp1
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);