redo version checks yet again
Dependencies
- [2]
7SICLTEDcheck for 'error' mode in a few more places - [3]
Z2VZTIXYredo version checks - [4]
PESSMQBJno, make sure to compute line width after screen dimensions - [5]
AVTNUQYRbasic test-enabled framework - [6]
UHB4GARJleft/right margin -> left/right coordinates - [7]
IM6GSGVZfix some arg names - [8]
YT5P6TO6bugfix: save previous file when dropping a new one on - [9]
APX2PY6Gstop tracking wallclock time - [10]
5XQ4Y7NUreorg manual tests doc - [11]
FJIGUGECbugfix: version check - [12]
FE25XVZYyet another bugfix to the version check - [13]
LF7BWEG4group all editor globals - [14]
2CK5QI7Wmake love event names consistent - [15]
TXDMRA5Jbugfix: alt-tab shouldn't emit keypress events - [16]
3QQZ7W4Ebring couple more globals back to the app level - [17]
YGCT2D2Ostart loading settings as applicable - [18]
KKMFQDR4editing source code from within the app - [*]
OTIBCAUJlove2d scaffold - [*]
6VJTQKW7start supporting LÖVE v12 - [*]
3QNOKBFMbeginnings of a test harness - [*]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing
Change contents
- edit in main.lua at line 92
-- Another weird bit for a class of corner cases. E.g.:-- * I press ctrl+e, switch Current_app. I don't want the new app to receive-- text_input and key_release events.-- If I try to avoid text_input events by switching modes on key_release, I-- hit a new problem:-- * I press ctrl+e, am running an untested version, Current_app goes to-- 'error', and immediately rolls back out of 'error' in the key_release-- event.-- Skip_rest_of_key_events is ugly, but feels cleaner than creating yet-- another possible value for Current_app.Skip_rest_of_key_events = nil-- Where to go from 'error' app.Next_app = nil - edit in main.lua at line 111
Unsupported_version = true - edit in main.lua at line 113[3.596]→[3.596:602](∅→∅),[4.414]→[4.1047:1052](∅→∅),[3.602]→[4.1047:1052](∅→∅),[4.86064]→[4.1047:1052](∅→∅),[4.187113]→[4.1047:1052](∅→∅),[4.1047]→[4.1047:1052](∅→∅),[4.1052]→[3.603:1005](∅→∅)
endendfunction App.love_version_check()if Unsupported_version thenCurrent_app = 'error'Error_message = ("This app hasn't been tested with LÖVE version %s; please switch to version %s if you run into issues. Press any key to continue."):format(Version, Supported_versions[1])print(Error_message)-- continue initializing everything; hopefully we won't have errors during initialization - edit in main.lua at line 130
check_love_version() - edit in main.lua at line 134
function check_love_version()if array.find(Supported_versions, Version) == nil thenNext_app = Current_appCurrent_app = 'error'Error_message = ("This app hasn't been tested with LÖVE version %s; please switch to version %s if you run into issues. Press any key to continue."):format(Version, Supported_versions[1])-- continue initializing everything; hopefully we won't have errors during initializationendend - edit in main.lua at line 144
if Current_app == 'error' then return end - edit in main.lua at line 149
elseif Current_app == 'error' then - edit in main.lua at line 156
if Current_app == 'error' then return end - edit in main.lua at line 161
elseif Current_app == 'error' then - edit in main.lua at line 167
if Current_app == 'error' then return end - edit in main.lua at line 175
elseif Current_app == 'error' then - edit in main.lua at line 197
if Current_app == 'error' then return end - edit in main.lua at line 207
elseif Current_app == 'error' then - edit in main.lua at line 218
Skip_rest_of_key_events = nil - edit in main.lua at line 222
elseCurrent_app = Next_appNext_app = nilSkip_rest_of_key_events = true - edit in main.lua at line 253
Skip_rest_of_key_events = true - edit in main.lua at line 272
if Skip_rest_of_key_events then return end - edit in main.lua at line 283
if Current_app == 'error' then return end - replacement in main.lua at line 289
if Current_app == 'error' thenCurrent_app = 'run'elseif Current_app == 'run' thenif Skip_rest_of_key_events then return endif Current_app == 'run' then - edit in app.lua at line 15
App.love_version_check() -- hack: we want to run this just the first time and not every time we bounce between 'run' and 'source' - replacement in Manual_tests.md at line 33
* run with an untested version. Error message pops up. Press a key. Text editor comes up, and doesn't receive the key. Press ctrl+e. Source editor opens up. Press ctrl+e. Text editor returns.* run with an untested version. Error message pops up. Press a key. Text editor comes up, and doesn't receive the key. Press ctrl+e. Error pops up. Press a key. Source editor opens up. Press ctrl+e. Error pops up. Press a key. Text editor returns.