diff options
author | Patric Stout <truebrain@openttd.org> | 2021-06-28 16:39:48 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-07-02 14:30:14 +0200 |
commit | 75b6051b7ae3aade1f06c8eb2bb915add4f317d1 (patch) | |
tree | f1fc0f61e208c58001c19da5bd9c4005c100e9b5 /src/fileio.cpp | |
parent | 4f3bf84af4eb03936c0242871d7fb5b3b3214e2d (diff) | |
download | openttd-75b6051b7ae3aade1f06c8eb2bb915add4f317d1.tar.xz |
Change: move sensitive information to secrets.cfg and private information to private.cfg
We often ask people for their openttd.cfg, which now includes their
passwords, usernames, etc. It is easy for people to overlook this,
unwillingly sharing information they shouldn't.
By splitting this information over either private.cfg or secrets.cfg,
we make it more obvious they shouldn't be sharing those files, and
hint to what is inside them.
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r-- | src/fileio.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index fe9c947df..c000362ef 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -1027,6 +1027,10 @@ void DeterminePaths(const char *exe, bool only_local_path) _hotkeys_file = config_dir + "hotkeys.cfg"; extern std::string _windows_file; _windows_file = config_dir + "windows.cfg"; + extern std::string _private_file; + _private_file = config_dir + "private.cfg"; + extern std::string _secrets_file; + _secrets_file = config_dir + "secrets.cfg"; #ifdef USE_XDG if (config_dir == config_home) { |