Decompile 2 functions in Source/File/FileEnumeration.cpp

Batch #17593 by eAthena: 2 byte-identical, 0 confirmed by peer review.

- fn_18246 EnumerateFileNames: byte-identical
- fn_18247 EnumerateFileNames: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-12 01:05:47 +00:00
commit 4e2f4c03ec

View file

@ -16,11 +16,15 @@ void EnumerateFileNames(std::list<std::string>& names, const char* directory, co
const std::string current(".");
const std::string parent("..");
do {
if (current != found.cFileName && parent != found.cFileName) {
names.push_back(std::string(found.cFileName));
}
while (FindNextFileA(handle, &found)) {
if (current != found.cFileName && parent != found.cFileName) {
names.push_back(std::string(found.cFileName));
}
} while (FindNextFileA(handle, &found));
}
FindClose(handle);
}
@ -38,10 +42,14 @@ void EnumerateFileNames(std::vector<std::string>& names, const char* directory,
const std::string current(".");
const std::string parent("..");
do {
if (current != found.cFileName && parent != found.cFileName) {
names.push_back(std::string(found.cFileName));
}
while (FindNextFileA(handle, &found)) {
if (current != found.cFileName && parent != found.cFileName) {
names.push_back(std::string(found.cFileName));
}
} while (FindNextFileA(handle, &found));
}
FindClose(handle);
}