Skip to content

Commit

Permalink
lxapigen.pl doesn't need the native dir specified on the command line…
Browse files Browse the repository at this point in the history
… now.
  • Loading branch information
icculus committed Jul 4, 2018
1 parent 0a6a720 commit 25ddf52
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lxapigen.pl
Expand Up @@ -2,6 +2,7 @@

use warnings;
use strict;
use File::Basename;

my %typesizes = (
'LONG' => 4,
Expand All @@ -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)) {
Expand Down

0 comments on commit 25ddf52

Please sign in to comment.