Alessandro Toia
4f02e20205
Blacklist: add EADesktop.exe and EALauncher.exe
2022-01-03 15:49:08 -08:00
jackun
822e325d11
Add get_basename, fix win32 build
...
std::string::substr likes to throw
2021-08-12 16:07:42 +03:00
flightlessmango
2fe9808f69
Merge pull request #433 from baryluk/programname
...
Improve code for program name extraction
2021-01-20 09:58:10 +01:00
jackun
4862d83b60
Make add_blacklist
const&
...
Might be optimized by compiler already but who knows.
2020-12-26 22:55:39 +02: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
Alessandro Toia
221c355f15
Check if item exits before adding to blacklist
2020-11-18 17:07:43 -08:00
Alessandro Toia
7c80dc53ef
Allow users to add a new item to the blacklist from config file
2020-11-17 19:35:05 -08:00
jackun
44060c2b80
Force blacklist re-check at certain points
...
Wine preloader that executed a non-blacklisted app may execute a blacklisted app,
or vice versa, and previous check applies to new app too.
2020-06-21 14:18:56 +03:00
Valters
40017bc1e6
Change blacklist type ( #204 )
...
* Set blacklist to std::vector<std::string>
Fix some strange crashes.
Co-authored-by: jackun <jack.un@gmail.com>
2020-06-09 19:00:35 +03:00
jackun
91ccde4969
[blacklist] Add SocialClubHelper.exe
...
No much difference but at least doesn't spam log as much
2020-06-06 12:35:55 +03:00
Valters
6cebbba732
Always print blacklist info to STREAM
2020-06-02 16:47:58 +03:00
Valters
4721281952
Add LeagueClient{,UxRender} to blacklist
2020-06-02 16:47:58 +03:00
jackun
c25082b1dd
Fix blacklist array entries count
2020-05-12 21:23:15 +03:00
jackun
a8f01a75e6
Use std::array for blacklist
...
More annoying to add entries but maybe more streamlined
2020-05-12 20:34:30 +03:00
Sporif
c61d25da04
Simplify 'is_blacklisted' function
2020-04-30 16:49:40 +03:00
jackun
8b13f8db7c
Blacklist Final Fantasy XIV launchers
2020-04-28 23:27:52 +03:00
jackun
79e4c5223a
In C-only apps, std::cerr and friends can be uninitialized
2020-04-21 17:19:12 +03:00
Sporif
c4a00704cf
Separate out blacklist implementation
2020-04-18 17:53:41 +01:00