about summary refs log tree commit diff stats
path: root/file.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-25 12:59:12 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-25 12:59:12 -0700
commitfa103ca2e8674dd389888d77f9ef60f361a0c704 (patch)
treef9aa4eb7a7d4ff588150614489e672e80b41753a /file.lua
parent299960553037fcaf93b545e85f7601b24c5975d8 (diff)
downloadlines.love-fa103ca2e8674dd389888d77f9ef60f361a0c704.tar.gz
couple more tests
Along with the App helpers needed for them.
Diffstat (limited to 'file.lua')
-rw-r--r--file.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.lua b/file.lua
index a60fe69..ced2a04 100644
--- a/file.lua
+++ b/file.lua
@@ -29,7 +29,7 @@ function load_from_file(infile)
 end
 
 function save_to_disk(lines, filename)
-  local outfile = io.open(filename, 'w')
+  local outfile = App.open_for_writing(filename)
   for _,line in ipairs(lines) do
     if line.mode == 'drawing' then
       store_drawing(outfile, line)