about summary refs log tree commit diff stats
path: root/app.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2023-12-06 21:32:10 -0800
committerKartik K. Agaram <vc@akkartik.com>2023-12-06 22:43:28 -0800
commit19597e7619babdf9a35efd61c9a87bdabd173569 (patch)
tree31cbcc00612487496264be97e1191db6e75306f8 /app.lua
parent01a26cad5f0abcd9aeb010ba91d33bcdb570256f (diff)
downloadlines.love-19597e7619babdf9a35efd61c9a87bdabd173569.tar.gz
redo version checks yet again
I'm starting to feel better after replacing 1 line with 20 and 2 new
bits of global state. I'm now handling two scenarios more explicitly:

* If I change Current_app within key_press, the corresponding text_input
  and key_release events go to the new app. If it's an editor it might
  insert the key, which is undesirable. Putting such handlers in
  key_release now feels overly clever, particularly since it took me
  forever to realize why I was getting stuck in an infinite loop.

* Both 'run' and 'source' can hit the version check, so we need to be
  able to transition from the 'error' app to either. Which
  necessitates yet another global bit of state: Next_app.
Diffstat (limited to 'app.lua')
-rw-r--r--app.lua1
1 files changed, 0 insertions, 1 deletions
diff --git a/app.lua b/app.lua
index 32c6f00..271fdc3 100644
--- a/app.lua
+++ b/app.lua
@@ -12,7 +12,6 @@ function love.run()
   App.snapshot_love()
   -- Tests always run at the start.
   App.run_tests_and_initialize()
-  App.love_version_check()  -- hack: we want to run this just the first time and not every time we bounce between 'run' and 'source'
 --?   print('==')
 
   love.timer.step()