mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 06:42:08 +00:00
Fix ..
to root folder in relative include
This commit is contained in:
parent
9712409f08
commit
2002396b8b
1 changed files with 9 additions and 2 deletions
|
@ -71,9 +71,16 @@ static FString ResolveIncludePath(const FString &path,const FString &lumpname){
|
|||
{
|
||||
relativePath = relativePath.Mid(3);
|
||||
auto slash_index = fullPath.LastIndexOf("/");
|
||||
if (slash_index != -1) {
|
||||
if (slash_index != -1)
|
||||
{
|
||||
fullPath = fullPath.Mid(0, slash_index);
|
||||
} else {
|
||||
}
|
||||
else if (fullPath.IsNotEmpty())
|
||||
{
|
||||
fullPath = "";
|
||||
}
|
||||
else
|
||||
{
|
||||
pathOk = false;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue