Decompile fn_18256 (CreateUniqueFileName)

Batch #15960 by Yommy: 1 byte-identical, 0 confirmed by peer review.

- fn_18256 CreateUniqueFileName: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-10 12:14:11 +00:00
commit a4d962279d

View file

@ -49,7 +49,7 @@ std::string CreateUniqueFileName(const std::string& filename) {
while (_access(result.c_str(), 0) == 0) {
result = static_cast<const std::string&>(FormatOwnedString("%s%s%s(%d)%s", drive, directory, name, ++index, extension));
}
std::ofstream output(result.c_str(), std::ios::out, _SH_DENYNO);
std::ofstream output(result);
output.close();
return result;
}