From f6bc670ef689aa6485f3e3ad242efb5271b48f58 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 3 Dec 2023 12:30:16 -0800 Subject: [PATCH] yet another bugfix to the version check We could now get test failures before the version check, which might be confusing. --- Manual_tests.md | 1 + app.lua | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Manual_tests.md b/Manual_tests.md index 4aa3897..c874610 100644 --- a/Manual_tests.md +++ b/Manual_tests.md @@ -29,6 +29,7 @@ Code loading: - analogously, how a shape precisely looks as you draw it * start out running the text editor, press ctrl+e to edit source, make a change to the source, press ctrl+e twice to return to the source editor; the change should be preserved. +* run with an unsupported version. Error message pops up and waits for a key. The app attempts to continue, and doesn't receive the key. Press ctrl+e to edit source. Source editor opens up without checking version. ### Other compromises diff --git a/app.lua b/app.lua index 4142380..e4b67cc 100644 --- a/app.lua +++ b/app.lua @@ -8,10 +8,10 @@ -- and a source editor, while giving each the illusion of complete -- control. function love.run() - App.version_check() App.snapshot_love() -- Tests always run at the start. App.run_tests_and_initialize() + App.version_check() --? print('==') love.timer.step() @@ -107,7 +107,6 @@ function App.run_tests_and_initialize() App.disable_tests() App.initialize_globals() App.initialize(love.arg.parseGameArguments(arg), arg) - App.version_check() end function App.run_tests()