mirror of
https://github.com/crskycode/GARbro.git
synced 2025-01-11 20:39:29 +08:00
check for index file existence.
not really necessary, just a shortcut to avoid exception thrown later on.
This commit is contained in:
parent
1797f5151f
commit
b333119148
@ -103,6 +103,8 @@ namespace GameRes.Formats.Cyberworks
|
||||
|
||||
var toc_name = toc_name_builder.ToString();
|
||||
toc_name = VFS.CombinePath (VFS.GetDirectoryName (file.Name), toc_name);
|
||||
if (!VFS.FileExists (toc_name))
|
||||
return null;
|
||||
var toc = ReadToc (toc_name);
|
||||
if (null == toc)
|
||||
return null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user