starting to convert all file reads to the new API
For starters, this detail was puzzling when I returned to the Game of Life app.
This commit is contained in:
parent
f2d29c22f8
commit
af9d7a16f3
2
life.tlv
2
life.tlv
|
@ -165,7 +165,7 @@
|
||||||
>function load_file(window, filename)
|
>function load_file(window, filename)
|
||||||
> local infile = io.open(filename, 'r')
|
> local infile = io.open(filename, 'r')
|
||||||
> if infile == nil then return end
|
> if infile == nil then return end
|
||||||
> local line_index = lines
|
> local line_index = lines -- quarter of the way down in pixels
|
||||||
> for line in infile:lines() do
|
> for line in infile:lines() do
|
||||||
> if line:sub(1,1) ~= '!' then -- comment; plaintext files can't have whitespace before comments
|
> if line:sub(1,1) ~= '!' then -- comment; plaintext files can't have whitespace before comments
|
||||||
> local col_index = cols
|
> local col_index = cols
|
||||||
|
|
Loading…
Reference in New Issue