common: global Data() to parse perl code includes
[sheet.git] / nethack.plp
index 8a49a3d78e30e23748ead2c1835be8cfc84b0d2d..5e676d9e87fef097c2b4224a47de1802a6d0c369 100644 (file)
@@ -21,7 +21,7 @@ Html({
 
 <:
 use Shiar_Sheet::Keyboard 2;
-my $info = do 'nethack.eng.inc.pl' or die $@;
+my $info = Data('nethack.eng');
 my $keys = Shiar_Sheet::Keyboard->new($info);
 $_->{"\e"} = ['me mode'] for values %{ $info->{def} };
        # static reset button, even though it's not (officially) in the game