ScarletNX / ScarletNX documentation / Settings · ← previous · next →
How a settings file is read
Every file of settings ScarletNX writes and reads follows one rule: a game's .ini and picks, the launcher's
settings.ini, app.ini, folders.txt, recent.txt, removed.txt and joycon2.txt, users/users.ini and
users/online.ini, setup.ini, a theme's theme.ini, a game's .folders, a 3DS game's .ini and picks, and the
launcher's record of its last run.
- A key, a section or a line it does not know (another version's, another program's, a typo) changes nothing it
reads, stays in the file as it was when the file is written again, and is named once a run in the log or the
launcher's message by its key alone, never by its value, which can be a secret. A line with no
= is named by its
number.
- A key given twice takes its last line's value, and both lines are said, with their values but in a file of secrets.
- A value a setting does not take is said with the value it gives and the one in effect.
- A file that is not there says nothing: each setting takes its default. One that is there and cannot be read is said
with the system's reason, and nothing is written over it.
- A file is written beside itself first, then put in its place, so a stop in the middle leaves the one before whole.
- What a file's own rule refuses stays refused:
users.ini's users out of order, a uid or a nickname the account
service would not keep; online.ini, which holds a secret, when others can read it, when it has a section, or a key
that starts with room_ and is not room_password.
Clean Old Settings takes out the keys an older version wrote that this one dropped (Deprecations),
never another version's.
← previous · next →