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UBUKRHLXF2ORE74DVT7TVQ35QC
DHCLUDCWEEPSOCVMSO7M6DDWESXWZ7PIZNXKG6TOT6TT6ODAPLBAC
DLQMM2656JHXX3ONOEM6UIOXKFJFT5QT7RHWK7YS2W77PVZWHRSAC
OYXDYPGSJK2QICJ6RBA7357WT4FSNAWRUT77YLQHT3F3VYMWGNFQC
MYC7XR5QOT2AXHF6UNGSNFFD5VL6UHGUZQBP7PWWLZ5NNXE7UMTAC
end
Lines = load_from_disk(Filename)
for i,line in ipairs(Lines) do
if line.mode == 'text' then
Cursor1.line = i
break
Lines = load_from_disk(Filename)
Screen_top1 = {line=1, pos=1}
Cursor1 = {line=1, pos=1}
for i,line in ipairs(Lines) do
if line.mode == 'text' then
Cursor1.line = i
break
end
end
else
Lines = load_from_disk(Filename)
if Lines[Cursor1.line].mode ~= 'text' then
for i,line in ipairs(Lines) do
if line.mode == 'text' then
Cursor1.line = i
break
end
end
end -- App.initialize
end
function load_settings()
local settings = json.decode(love.filesystem.read('config'))
love.window.setPosition(settings.x, settings.y, settings.displayindex)
App.screen.width, App.screen.height = settings.width, settings.height
love.window.setMode(App.screen.width, App.screen.height)
Filename = settings.filename
initialize_font_settings(settings.font_height)
Screen_top1 = settings.screen_top
Cursor1 = settings.cursor
end
function load_defaults()
initialize_font_settings(20)
initialize_window_geometry()
end