Make symstore.pl die if it fails to open a symbol directory (no bug, r=dvander).
This commit is contained in:
parent
9be71eea2f
commit
d259be7b1f
@ -43,7 +43,7 @@ close(PDBLOG);
|
|||||||
|
|
||||||
#Lowercase DLLs. Sigh.
|
#Lowercase DLLs. Sigh.
|
||||||
my (@files);
|
my (@files);
|
||||||
opendir(DIR, "S:\\sourcemod");
|
opendir(DIR, "S:\\sourcemod") or die "Could not open sourcemod symbol folder: $!\n";
|
||||||
@files = readdir(DIR);
|
@files = readdir(DIR);
|
||||||
closedir(DIR);
|
closedir(DIR);
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ for ($i = 0; $i <= $#files; $i++)
|
|||||||
$file = $files[$i];
|
$file = $files[$i];
|
||||||
next unless ($file =~ /\.dll$/);
|
next unless ($file =~ /\.dll$/);
|
||||||
next unless (-d "S:\\sourcemod\\$file");
|
next unless (-d "S:\\sourcemod\\$file");
|
||||||
opendir(DIR, "S:\\sourcemod\\$file");
|
opendir(DIR, "S:\\sourcemod\\$file") or die "Could not open S:\\sourcemod\\$file: $!\n";
|
||||||
@subdirs = readdir(DIR);
|
@subdirs = readdir(DIR);
|
||||||
closedir(DIR);
|
closedir(DIR);
|
||||||
for ($j = 0; $j <= $#subdirs; $j++)
|
for ($j = 0; $j <= $#subdirs; $j++)
|
||||||
|
Loading…
Reference in New Issue
Block a user