From 4b853a3fafd0c075b00ef127689ed48a46f0aa67 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 09:06:56 +0000 Subject: [PATCH] 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. --- Source/Utility/Text/StringUtil.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/Utility/Text/StringUtil.cpp b/Source/Utility/Text/StringUtil.cpp index a7ae74c1c..5bf954cb3 100644 --- a/Source/Utility/Text/StringUtil.cpp +++ b/Source/Utility/Text/StringUtil.cpp @@ -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