keep the version check in one place
Dependencies
- [2]
CC6INQTAmerge quasi-bug - [3]
D2TYFYG2Merge text.love - [4]
UH4YWHW5button framework is at the app level - [5]
VMV4LBR4resolve conflicts - [6]
OTIBCAUJlove2d scaffold - [7]
ZNLTRNNKhighlight another global - [8]
CAG7PP5YMerge text.love - [9]
3XQROLSKredo version checks yet again - [10]
ULKNZUZKresolve conflicts - [11]
VPRGENLAhide some details within the 'warning' state - [12]
FJIGUGECbugfix: version check - [13]
7SICLTEDcheck for 'error' mode in a few more places - [14]
Z4XRNDTRfind text - [15]
6VJTQKW7start supporting LÖVE v12 - [16]
MX7YD2WCresolve conflicts - [17]
AFDLKNAPresolve conflicts - [18]
3QQZ7W4Ebring couple more globals back to the app level - [19]
KKMFQDR4editing source code from within the app - [20]
36Z442IVback to commit 8123959e52f without code editing - [21]
ORKN6EOBMerge lines.love - [22]
RT6EV6OPdelegate update events to drawings - [23]
J2SVGR2Eexperiment: blinking cursor - [24]
AVLAYODPmuch simpler - [25]
BYG5CEMVsupport for naming points - [26]
2RWR3GM4another missed rename - [27]
K464QQR4more defensive resize handling - [28]
LHG2QWSOresolve conflicts - [29]
2L5MEZV3experiment: new edit namespace - [30]
JCSLDGAHbeginnings of support for multiple shapes - [31]
AVTNUQYRbasic test-enabled framework - [32]
5FW7YOFThighlight selection while dragging - [33]
6VXO3ZL3just keep the cursor visible after any input events - [34]
LNUHQOGHstart passing in Editor_state explicitly - [35]
TXDMRA5Jbugfix: alt-tab shouldn't emit keypress events - [36]
APX2PY6Gstop tracking wallclock time - [37]
KVHUFUFVreorg - [38]
YT5P6TO6bugfix: save previous file when dropping a new one on - [39]
2CTN2IEFMerge lines.love - [40]
JOPVPUSAediting source code from within the app - [41]
IM6GSGVZfix some arg names - [42]
XGHCLIKBMerge lines.love - [43]
PP2IIHL6stop putting button state in a global - [44]
PJ5PQAQErecord support for multiple versions - [45]
YF2ATH2QMerge lines.love - [46]
LXFHXL2NMerge text.love
Change contents
- edit in main.lua at line 20
-- Available modes: run, version_checkMode = 'run' - replacement in main.lua at line 84
Mode = 'version_check'-- continue initializing everything; hopefully we won't have errors during initializationwhile true dolove.graphics.origin()love.graphics.clear(love.graphics.getBackgroundColor())love.graphics.setColor(1,1,0)love.graphics.rectangle('fill', 30,30, 400,400)love.graphics.setColor(0,0,0)love.graphics.printf(("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]), 40,40, 400)love.graphics.present()if love.event thenlove.event.pump()for name, a,b,c,d,e,f in love.event.poll() doif name == 'quit' thenif not love.quit or not love.quit() thenos.exit(1)endelseif name == 'keypressed' thenreturnendendendlove.timer.sleep(0.01)end - edit in main.lua at line 197[3.1373]→[3.319:473](∅→∅),[3.473]→[3.411:622](∅→∅),[3.622]→[3.664:681](∅→∅),[3.664]→[3.664:681](∅→∅)
if Mode == 'version_check' thenlove.graphics.setColor(1,1,0)love.graphics.rectangle('fill', 30,30, 400,400)love.graphics.setColor(0,0,0)love.graphics.printf(("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]), 40,40, 400)returnend - edit in main.lua at line 201
if Mode == 'version_check' then return end - edit in main.lua at line 211
if Mode == 'version_check' then return end - edit in main.lua at line 228
if Mode == 'version_check' then return end - edit in main.lua at line 234
if Mode == 'version_check' then return end - edit in main.lua at line 239
if Mode == 'version_check' then return end - edit in main.lua at line 244
if Mode == 'version_check' then return end - edit in main.lua at line 250
if Mode == 'version_check' then return end - edit in main.lua at line 259
if Mode == 'version_check' then return end - edit in main.lua at line 268
if Mode == 'version_check' thenMode = 'run'returnend