mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Fixed GetActualPath where path begins with a slash
This commit is contained in:
parent
9465247dfe
commit
e65e4049fa
1 changed files with 7 additions and 0 deletions
|
@ -3161,6 +3161,13 @@ BFP_EXPORT void BFP_CALLTYPE BfpFile_GetActualPath(const char* inPathC, char* ou
|
|||
}
|
||||
}
|
||||
|
||||
if ((i == 0) && (length >= 1) &&
|
||||
((inPath[0] == DIR_SEP_CHAR) || (inPath[1] == DIR_SEP_CHAR_ALT)))
|
||||
{
|
||||
i++; // start after initial slash
|
||||
outPath.Append(DIR_SEP_CHAR);
|
||||
}
|
||||
|
||||
int32 lastComponentStart = i;
|
||||
bool addSeparator = false;
|
||||
String subName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue