Decompile fn_02759 (GetFileName)

Batch #14398 by SapitoSucio: 1 byte-identical, 0 confirmed by peer review.

- fn_02759 GetFileName: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-07 09:06:56 +00:00
commit 4b853a3faf

View file

@ -111,15 +111,17 @@ bool ContainsText(const std::string& text, std::string_view pattern) {
return text.find(pattern) != std::string::npos;
}
#pragma inline_depth(0)
// OFFSET: 0x0058A8F0
// FUNCTION: fn_02759
std::string GetFileName(const std::string& path) {
std::size_t position = path.find_last_of("\\/");
if (position == std::string::npos) {
return path;
if (position != std::string::npos) {
return path.substr(position + 1);
}
return path.substr(position + 1);
return path;
}
#pragma inline_depth()
// OFFSET: 0x0058AAF0
// FUNCTION: fn_02761