1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +01:00

Make symstore.pl die if it fails to open a symbol directory (no bug, r=me).

This commit is contained in:
Scott Ehlert 2014-02-13 02:14:39 -06:00
parent 44c047ae4b
commit b3c96d973e

View File

@ -43,7 +43,7 @@ close(PDBLOG);
#Lowercase DLLs. Sigh.
my (@files);
opendir(DIR, "S:\\mmsource");
opendir(DIR, "S:\\mmsource") or die "Could not open mmsource symbol folder: $!\n";
@files = readdir(DIR);
closedir(DIR);
@ -53,7 +53,7 @@ for ($i = 0; $i <= $#files; $i++)
$file = $files[$i];
next unless ($file =~ /\.dll$/);
next unless (-d "S:\\mmsource\\$file");
opendir(DIR, "S:\\mmsource\\$file");
opendir(DIR, "S:\\mmsource\\$file") or die "Could not open S:\\mmsource\\$file: $!\n";
@subdirs = readdir(DIR);
closedir(DIR);
for ($j = 0; $j <= $#subdirs; $j++)