Collaborative wiki for a few of us. Fork of lines.love.

bugfix: load settings based on commandline args

This was a pretty serious, almost-catastrophic[1] incident. I lost 160+ columns the first time I ran with a commandline arg (after a long time).

The root cause: I've been conflating globals Directory and Settings_file in my mind, and as a result I forgot about the existence of Settings_file altogether. Settings_file is the root variable. Everything else is dependent on it getting initialized right.

Process improvements:

  • start backing up pensieve.love settings
  • go over initialization manual tests any time I reorganize global variables. This whole issue began when I extracted run.lua out of main.lua.

[1] Not actually catastrophic because I didn't lose any actual notes.

Created by  Kartik K. Agaram  on September 10, 2022
WUJMPZPGPNVLBHEBVYTLSYWFOPEYVQJOPK45RFD576HTLG3NFCTAC
Change contents