yet another bugfix to the version check

We could now get test failures before the version check, which might be
confusing.
This commit is contained in:
Kartik K. Agaram 2023-12-03 12:30:16 -08:00
parent f37b45196a
commit f6bc670ef6
2 changed files with 2 additions and 2 deletions

View File

@ -29,6 +29,7 @@ Code loading:
- analogously, how a shape precisely looks as you draw it - 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. * 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 ### Other compromises

View File

@ -8,10 +8,10 @@
-- and a source editor, while giving each the illusion of complete -- and a source editor, while giving each the illusion of complete
-- control. -- control.
function love.run() function love.run()
App.version_check()
App.snapshot_love() App.snapshot_love()
-- Tests always run at the start. -- Tests always run at the start.
App.run_tests_and_initialize() App.run_tests_and_initialize()
App.version_check()
--? print('==') --? print('==')
love.timer.step() love.timer.step()
@ -107,7 +107,6 @@ function App.run_tests_and_initialize()
App.disable_tests() App.disable_tests()
App.initialize_globals() App.initialize_globals()
App.initialize(love.arg.parseGameArguments(arg), arg) App.initialize(love.arg.parseGameArguments(arg), arg)
App.version_check()
end end
function App.run_tests() function App.run_tests()