mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +08:00
check that index file name isn't same as a source file name.
This commit is contained in:
parent
f9448e4613
commit
69658a505c
@ -51,7 +51,8 @@ namespace GameRes.Formats.Eagls
|
||||
public override ArcFile TryOpen (ArcView file)
|
||||
{
|
||||
string idx_name = Path.ChangeExtension (file.Name, ".idx");
|
||||
if (!VFS.FileExists (idx_name))
|
||||
if (file.Name.Equals (idx_name, StringComparison.InvariantCultureIgnoreCase)
|
||||
|| !VFS.FileExists (idx_name))
|
||||
return null;
|
||||
var idx_entry = VFS.FindFile (idx_name);
|
||||
if (idx_entry.Size > 0xfffff || idx_entry.Size < 10000)
|
||||
|
Loading…
Reference in New Issue
Block a user