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:
parent
697821c7e8
commit
4e2f4c03ec
1 changed files with 12 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue