Skip to content

Commit

Permalink
mangoapp: Use existing MANGOHUD_CONFIGFILE if set
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinKinloch authored and misyltoad committed Jun 29, 2024
1 parent c9510aa commit b44ea3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ static void UpdateCompatEnvVars()
// A sane default here.
setenv( "GAMESCOPE_NV12_COLORSPACE", "k_EStreamColorspace_BT601", 0 );

if ( g_bLaunchMangoapp )
if ( g_bLaunchMangoapp && !getenv("MANGOHUD_CONFIGFILE") )
{
char szMangoConfigPath[ PATH_MAX ];
int nMangoConfigFd = gamescope::MakeTempFile( szMangoConfigPath, gamescope::k_szGamescopeTempMangoappTemplate );
Expand Down

0 comments on commit b44ea3c

Please sign in to comment.