mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-06 13:48:57 +08:00
check for index file existence.
not really necessary, just a shortcut to avoid exception thrown later on.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user