Commit Graph

3 Commits

Author SHA1 Message Date
jackun
822e325d11
Add get_basename, fix win32 build
std::string::substr likes to throw
2021-08-12 16:07:42 +03:00
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.
2020-12-13 11:35:40 +00:00
FlightlessMango
785b37534d win32 file_utils 2020-09-06 10:56:24 +02:00