mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 05:35:34 +08:00
(IsPathEqualsToFileName): if not needed.
This commit is contained in:
parent
add9ae0a1f
commit
74f8754be9
@ -833,10 +833,7 @@ namespace GameRes
|
||||
return false;
|
||||
// now, compare length of filename portion of the path
|
||||
int filename_index = path.LastIndexOfAny (PathSeparatorChars);
|
||||
if (-1 == filename_index)
|
||||
filename_index = 0;
|
||||
else
|
||||
filename_index++;
|
||||
filename_index++;
|
||||
int filename_portion_length = path.Length - filename_index;
|
||||
return filename.Length == filename_portion_length;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user