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KRUTZVMMPSFWEJTUNMWTN7AX4NAC
XGHCLIKBWIW24G7O5QLYH6EUIY3TWTYFTUIYTWE25RFEGBHMZOKQC
ZMRMC3O6RXECMBAPOOKUSYDJ3K6CQVRFHFE2BID4BUBOL3YB6MGAC
BQI2D6AG7PDOAGOFR7WGZ2ZDQ3R2H2SHZHQDZHAYJP43XUYSLRCQC
A7O6MZIUNUHW65ODP7GLYO37RQ26AOUDGP5Z6M2RG77VZWKL27BQC
M75WBEA4QUH5VRH6OD35FLPVSM3ILQNPJOE6QZPNONF32IMRLUJQC
564RK5FW46AHODXU7LMSGA5LQND5SIFQTZMBFEKYEA3KGMED4JBAC
2Y7YH7UPQWDNYDJN4BYY2MOHA36B2BIRX6DMIAKHJPQC7UP2R6NQC
2L5MEZV344TOZLVY3432RHJFIRVXFD6O3GWLL5O4CV66BGAFTURQC
VG75U7IM2ZQTGM2QETDT6QQ4CSLQPB4APK436POAAQJWOMINPIJAC
AVTNUQYRBW7IX2YQ3KDLVQ23RGW3BAKTAE7P73ASBYNKOHMQMH5AC
UOTHQWM74AFOCPGQKKPLZXRI5HQFH3SRGI336AVZRGWPR6P256EAC
LNUHQOGHIOFGJXNGA3DZLYEASLYYDGLN2I3EDZY5ANASQAHCG3YQC
6LJZN727CRPYR34LV75CQF55YZI3E7MGESYZSFSYAE73SNEZE3FAC
end
-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708
love.window.setTitle('text.love - source')
end
-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708
love.window.setTitle('text.love - source')
end
function run.draw()
edit.draw(Editor_state)
end
function run.update(dt)
Cursor_time = Cursor_time + dt
edit.update(Editor_state, dt)
end
function run.quit()
edit.quit(Editor_state)
end
function run.settings()
-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708
love.window.setTitle('text.love - '..Editor_state.filename)
if #arg > 1 then
print('ignoring commandline args after '..arg[1])
end
if rawget(_G, 'jit') then
jit.off()
jit.flush()
end
end
function run.load_settings()
love.graphics.setFont(love.graphics.newFont(Settings.font_height))
-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708
love.window.setTitle('text.love - '..Editor_state.filename)
end
end
else
assert(false, 'unknown app "'..Current_app..'"')
if source.mouse_release then source.mouse_release(x,y, mouse_button) end
elseif Current_app == 'source' then
if pong.mouse_release then pong.mouse_release(x,y, mouse_button) end
if Current_app == 'pong' then
function App.mouserelease(x,y, mouse_button)
else
assert(false, 'unknown app "'..Current_app..'"')
end
end
if Current_app == 'pong' then
if pong.quit then pong.quit() end
elseif Current_app == 'source' then
if source.quit then source.quit() end
if Current_app == 'pong' then
Settings.pong = pong.settings()
else
Settings.source = source.settings()
end
Settings.current_app = Current_app
love.filesystem.write('config', json.encode(Settings))
function love.quit()
function App.wheelmoved(dx,dy)
if Current_app == 'run' then
if run.mouse_wheel_move then run.mouse_wheel_move(dx,dy) end
elseif Current_app == 'source' then
if source.mouse_wheel_move then source.mouse_wheel_move(dx,dy) end
else
assert(false, 'unknown app "'..Current_app..'"')
end
end
end
end
assert(false, 'unknown app "'..Current_app..'"')
else
else
assert(false, 'unknown app "'..Current_app..'"')
end
end
function App.mouserelease(x,y, mouse_button)
if Current_app == 'pong' then
if pong.mouse_release then pong.mouse_release(x,y, mouse_button) end
elseif Current_app == 'source' then
if source.mouse_release then source.mouse_release(x,y, mouse_button) end
else
assert(false, 'unknown app "'..Current_app..'"')
end
end
function App.wheelmoved(dx,dy)
if source.mouse_wheel_move then source.mouse_wheel_move(dx,dy) end
else
assert(false, 'unknown app "'..Current_app..'"')
end
end
function love.quit()
if Current_app == 'pong' then
Settings.pong = pong.settings()
else
Settings.source = source.settings()
end
Settings.current_app = Current_app
love.filesystem.write('config', json.encode(Settings))
if Current_app == 'pong' then
if pong.quit then pong.quit() end
elseif Current_app == 'source' then
if source.quit then source.quit() end
else
assert(false, 'unknown app "'..Current_app..'"')
end
end