mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 15:22:08 +00:00
Fix Typo in Comment
This commit is contained in:
parent
766c61b3ed
commit
87fcaab512
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ static FString ResolveIncludePath(const FString &path,const FString &lumpname){
|
||||||
|
|
||||||
auto end = lumpname.LastIndexOf("/"); // find last '/'
|
auto end = lumpname.LastIndexOf("/"); // find last '/'
|
||||||
|
|
||||||
// it's a top-level file, if it's a folder being loaded ( /xxx/yyy/:whatever.zs ) end is before than start, or if it's a zip ( xxx.zip/whatever.zs ) end would be -1
|
// it's a top-level file, if it's a folder being loaded ( /xxx/yyy/:whatever.zs ) end is before than start, or if it's a zip ( xxx.zip:whatever.zs ) end would be -1
|
||||||
bool topLevelFile = start > end ;
|
bool topLevelFile = start > end ;
|
||||||
|
|
||||||
FString fullPath = topLevelFile ? FString {} : lumpname.Mid(start + 1, end - start - 1); // get path from lumpname (format 'wad:filepath/filename')
|
FString fullPath = topLevelFile ? FString {} : lumpname.Mid(start + 1, end - start - 1); // get path from lumpname (format 'wad:filepath/filename')
|
||||||
|
|
Loading…
Reference in a new issue