From d72c8c83e6e07ae8f665ff9df7807501e8a5126f Mon Sep 17 00:00:00 2001 From: g012 Date: Wed, 11 Oct 2017 15:36:27 +0200 Subject: [PATCH] Added optional ttt filename parameter for vcs_music.l65. --- README.md | 3 ++- samples/vcs_music.l65 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c7048bc..83a56b9 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,8 @@ A simple parsing of number literals in the form of `0b11011` converts this base- #### getopt(optstring, ...) Taken from [Posix Get Opt](http://lua-users.org/wiki/PosixGetOpt). -Parse args in `...` using optstring, the same way as `getopt` from Posix. +Parse args in `...` using `optstring`, the same way as `getopt` from Posix. + Usage: ```lua diff --git a/samples/vcs_music.l65 b/samples/vcs_music.l65 index 5ab76b8..83afece 100644 --- a/samples/vcs_music.l65 +++ b/samples/vcs_music.l65 @@ -6,7 +6,7 @@ local AUDC1s, AUDF0s, AUDF1s, AUDV0s, AUDV1s = AUDC0s+1, AUDC0s+2, AUDC0s+3, AUD local vubars = 0xA0 local tmp = 0xB0 -local zic_filename = 'Ishtar.ttt' +local zic_filename = ... or 'Ishtar.ttt' local zic = ttt(zic_filename) print(string.format('Using file %s (ttt version %d)\n Name: %s\n Author: %s\n%s', zic_filename, zic.version, zic.name, zic.author, zic.comment))