about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-09-09 09:09:14 -0700
committerKartik K. Agaram <vc@akkartik.com>2023-09-09 09:09:14 -0700
commit0016d668bcbd5a88afaaa305cddeff7a4300f215 (patch)
tree791cae5e278bcdbc674a995affcde032c92f72c9 /app.lua
parentbcd7f6b59828f6f5419c1a48394d12177ba35446 (diff)
downloadlines.love-0016d668bcbd5a88afaaa305cddeff7a4300f215.tar.gz
two bugfixes
Annoying dangers of testing in one fork and committing upstream
(where it isn't used yet).
Diffstat (limited to 'app.lua')
-rw-r--r--app.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/app.lua b/app.lua
index b615ad0..d4a2a70 100644
--- a/app.lua
+++ b/app.lua
@@ -444,7 +444,7 @@ function App.disable_tests()
           return ok, err
         end
       end
-  App.read =
+  App.read_file =
       function(path)
         if not is_absolute_path(path) then
           return --[[status]] false, 'Please use an unambiguous absolute path.'
@@ -467,7 +467,7 @@ function App.disable_tests()
           return ok, err
         end
       end
-  App.write =
+  App.write_file =
       function(filename, contents)
         if not is_absolute_path(path) then
           return --[[status]] false, 'Please use an unambiguous absolute path.'
@@ -478,6 +478,7 @@ function App.disable_tests()
         end
         f:write(contents)
         f:close()
+        return --[[status]] true
       end
   App.files = nativefs.getDirectoryItems
   App.mkdir = nativefs.createDirectory
f5f70'>ee9a9237 ^
62c6d163 ^
6030d7e2 ^




62c6d163 ^
6030d7e2 ^





3364d19c ^
6030d7e2 ^
91dab3e1 ^
62c6d163 ^
6030d7e2 ^
9d27e966 ^
6030d7e2 ^
91dab3e1 ^
9d27e966 ^
6030d7e2 ^



62c6d163 ^
6030d7e2 ^
9d27e966 ^
6030d7e2 ^
91dab3e1 ^
9d27e966 ^
6030d7e2 ^

6ff9ce26 ^
6030d7e2 ^





9d27e966 ^
6030d7e2 ^
91dab3e1 ^
6ff9ce26 ^
6030d7e2 ^
9d27e966 ^
6030d7e2 ^
91dab3e1 ^
9d27e966 ^
6030d7e2 ^



6ff9ce26 ^
6030d7e2 ^
9d27e966 ^
6030d7e2 ^
91dab3e1 ^
3364d19c ^
6030d7e2 ^

6ff9ce26 ^
6030d7e2 ^



6ff9ce26 ^
6030d7e2 ^
9d27e966 ^
6030d7e2 ^
91dab3e1 ^
3364d19c ^
6030d7e2 ^

6ff9ce26 ^
a6517ed8 ^
e5cbbea4 ^
e59a91b7 ^
9b16f190 ^
e59a91b7 ^
9b16f190 ^
e59a91b7 ^
9b16f190 ^
e59a91b7 ^
6030d7e2 ^
9b16f190 ^
6ff9ce26 ^
ee9a9237 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106