Skip to content

Commit 4a94aff

Browse files
committed
Early return out of GetCaseInsensitiveFullPath
1 parent 40a2ec0 commit 4a94aff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/System/RTETools.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ namespace RTE {
222222
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
223223

224224
std::string GetCaseInsensitiveFullPath(const std::string &fullPath) {
225+
if (std::filesystem::exists(fullPath)) {
226+
return fullPath;
227+
}
228+
225229
std::filesystem::path inspectedPath = System::GetWorkingDirectory();
226230
const std::filesystem::path relativeFilePath = std::filesystem::path(fullPath).lexically_relative(inspectedPath);
227231

0 commit comments

Comments
 (0)