Emil Velikov
8ac81477d9
Remove unused parseConfigFile() return type
...
Was briefly introduced a while ago and the only user was been dropped
since then.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
3 years ago
Joshua Ashton
beecde110b
Enable no_overlay by default with mangoapp
...
Don't want this displaying unless explicitly requested.
3 years ago
FlightlessMango
fbda58c907
Some windows fixes
3 years ago
jackun
a82e27d978
Use spdlog macros so logging can be completely disabled during compile-time
3 years ago
jackun
2f807a4c0d
Add `spdlog` wrap and logging
3 years ago
Witold Baryluk
4f20da781d
Improve code for program name extraction
...
This cleans up the code, as well fixes the bug of not setting
program_name if the MANGOHUD_CONFIG env is specified.
Instead of global variable, that could be not-initialized
use a function to get a program name in logging.
While at it, revamp code and separate things into own functions,
and return by value, and make them easier to use / share code.
4 years ago
FlightlessMango
af0658e137
Change win config location to mangohud folder
4 years ago
FlightlessMango
cc38924997
Added graphs
4 years ago
FlightlessMango
378cc1e089
Push params to HudElements options
4 years ago
FlightlessMango
dd741cdda3
Assume MangoHud.conf in C:\ root on win32
4 years ago
FlightlessMango
ac85815d82
Changed output_file to output_folder
4 years ago
jackun
edf9f95517
Use std::locale::classic with confiog file ifstream, just in case
4 years ago
jackun
f5e3f3b73b
[config] Add MANGOHUD_CONFIGFILE envvar for specific configuration file
...
Issue #104
5 years ago
jackun
25b0adfbf9
Move Wine exe name code from config.cpp to get_wine_exe_name(...)
5 years ago
jackun
341aa21b87
[config] Move options map and config_file_path to overlay_params
5 years ago
FlightlessMango
c5dad16612
Listen for modify on config file
5 years ago
jackun
f7a7256374
Clear options map so reloading config files actually has an effect
5 years ago
jackun
6b4103eae9
[config] Parse Wine application name without absolute path
5 years ago
jackun
50cef9621b
Remove ~/.local/share/MangoHud/MangoHud.conf support
5 years ago
jackun
72d7f6ef71
Print also a reason for skipping a config file
5 years ago
jackun
417b1aac8d
config: trim only surrounding whitespace
5 years ago
jackun
9053b63142
Allocate instance_data with "new"
5 years ago
jackun
ad2ed4a99a
config: load highest priority config available only
5 years ago
jackun
f7e7146883
config: find_last_of can search for multiple characters, doh
5 years ago
jackun
6a45ac84b3
config: sometimes wine exe has forward-slashes instead
5 years ago
jackun
65b90fc01b
config file: respect XDG dirs
...
Other half of #37
5 years ago
jackun
67eab673d8
Override previous setting, std::unordered_map::insert() does not.
5 years ago
jackun
69cf83d3bc
config file: print that config file is skipped if we failed to open it
5 years ago
jackun
3e0eda559d
print if done parsing config file
5 years ago
jackun
6086a6b9ab
config file: try to detect Wine executable's path
5 years ago
jackun
169d5ff99a
Search configs in ~/.config/MangoHud
5 years ago
jackun
08debe5d09
Add per-executable config file support
...
* executable's name + ".conf" in config dir
* "MangoHud.conf" in executable's folder
5 years ago
jackun
74c9803087
config file: if parameter line has no equal sign, default value to 1
5 years ago
FlightlessMango
f56c53c152
Removed unused header
5 years ago
FlightlessMango
2003ae93c9
Continue parsing overlay params without env
5 years ago
FlightlessMango
5a62a1b0de
Cleaning up
5 years ago
FlightlessMango
33f48c91be
Apply params from config file
5 years ago
FlightlessMango
ebc49ae8c5
Basic parse config
5 years ago