Commit Graph

9 Commits (0f49c5796a9b2753f38cc150715cf2374bdfdfb7)

Author SHA1 Message Date
jackun 822e325d11
Add get_basename, fix win32 build
std::string::substr likes to throw
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
larskraemer a28931ef6b
General cleanup (#272)
* Cleanup unused struct fields, use uniform include guards
4 years ago
jackun 66ddada43c
Fix `readlink` overloading for fortified musl
Issue #231
4 years ago
jackun a9311bb578
Allow to specify gpu with pci bus id by setting env var `MANGOHUD_PCI_DEV=xxxx:xx:xx:x` where x's are "domain🚌slot.function" 5 years ago
jackun 25b0adfbf9
Move Wine exe name code from config.cpp to get_wine_exe_name(...) 5 years ago
jackun 65b90fc01b
config file: respect XDG dirs
Other half of #37
5 years ago
jackun 90a93fd2fc
Add "get executable's path" function 5 years ago
jackun b5bfd437a6
Add file and string utility functions 5 years ago