mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(IsPathEqualsToFileName): if not needed.
This commit is contained in:
@@ -833,10 +833,7 @@ namespace GameRes
|
|||||||
return false;
|
return false;
|
||||||
// now, compare length of filename portion of the path
|
// now, compare length of filename portion of the path
|
||||||
int filename_index = path.LastIndexOfAny (PathSeparatorChars);
|
int filename_index = path.LastIndexOfAny (PathSeparatorChars);
|
||||||
if (-1 == filename_index)
|
filename_index++;
|
||||||
filename_index = 0;
|
|
||||||
else
|
|
||||||
filename_index++;
|
|
||||||
int filename_portion_length = path.Length - filename_index;
|
int filename_portion_length = path.Length - filename_index;
|
||||||
return filename.Length == filename_portion_length;
|
return filename.Length == filename_portion_length;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user