Core/Error: Remove starting / from file log

This commit is contained in:
SirLynix 2023-12-07 16:42:44 +01:00
parent 62d5e611f1
commit f2ab31cc4b
1 changed files with 2 additions and 2 deletions

View File

@ -7,10 +7,10 @@ namespace Nz
constexpr std::string_view Error::TranslateFilepath(std::string_view file)
{
if (std::size_t offset = file.rfind('/'); offset != file.npos)
return file.substr(offset);
return file.substr(offset + 1);
if (std::size_t offset = file.rfind('\\'); offset != file.npos)
return file.substr(offset);
return file.substr(offset + 1);
return file;
}