Login
You're viewing the front-end.social public feed.
  • Sep 27, 2026, 6:05 PM

    So far I've been studying Papyrix's code for booting up its hardware & filesystems, as well as text-rendering when it has to report errors. I was very keen to study that text-rendering!

    Next it initializes one of 2 UI modes, today I'll study how it chooses which to boot.

    1st it checks if the "pending transition" in the saved settings is 1, handling that specially.

    1/2?

    P.S. The code has evolved since I started my study, so I'm now studying it roughly as it was when I began.

    💬 1🔄 1⭐ 0

Replies

  • Sep 27, 2026, 6:12 PM

    If that pending transition is 1 Papryix logs some data, updates a cached transition to match, & zeroes out (via a helper) the transition settings, & indicates it should boot into UI mode.

    Otherwise if it was 2 & it remembers which book you're reading (validating it still exists), Papyrix some similar logic but instead chooses Reader mode. Or it might do essentially the same if configured to & if it remembers you had a valid book open.

    Otherwise it boots into UI mode.

    2/2 Fin! Next: Mainloop!

    💬 0🔄 1⭐ 0