lxapigen.pl doesn't need the native dir specified on the command line now.

This commit is contained in:
Ryan C. Gordon committed 2018-07-03 22:47:58 -04:00
1 parent 0a6a7208d8
commit 25ddf52ad7
1 file changed
+3 -1
+3 -1
View File
@@ -2,6 +2,7 @@
use warnings;
use strict;
use File::Basename;
my %typesizes = (
'LONG' => 4,
@@ -19,7 +20,8 @@ sub typesize {
return $typesizes{$t};
}
my $dirname = defined $ARGV[0] ? $ARGV[0] : 'native';
chdir(dirname(__FILE__)) or die("failed to chdir to script location: $!\n");
my $dirname = 'native';
opendir(DIRH, $dirname) or die("Failed to opendir '$dirname': $!\n");
while (readdir(DIRH)) {