From 02f7f04ecbd7520e234c18d41a35df840ab3ab0c Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 01:08:31 +0000 Subject: [PATCH] Decompile fn_02596 (MakeResourcePath) Batch #17598 by eAthena: 1 byte-identical, 0 confirmed by peer review. - fn_02596 MakeResourcePath: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/File/ResourcePath.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/File/ResourcePath.cpp b/Source/File/ResourcePath.cpp index 70dee709a..6de574e1a 100644 --- a/Source/File/ResourcePath.cpp +++ b/Source/File/ResourcePath.cpp @@ -3,6 +3,9 @@ #include "Utility/Hash/GGHashMgr.h" #include #include +#include + +template __declspec(noinline) std::string& std::string::replace(const size_type, const size_type, const char* const, const size_type); // STRING: st_14242 static char g_dataDirectory[] = "data\\"; @@ -16,9 +19,8 @@ std::string MakeResourcePath(std::string filename) { path = path.substr(path.find(":") - 1); } - std::size_t duplicate; - while ((duplicate = path.find("//")) != std::string::npos) { - path.replace(duplicate, 2, "/", 1); + while (path.find("//") != std::string::npos) { + path.replace(path.find("//"), 2, "/", 1); } return path;