Skip to content

Commit

Permalink
main: Only set no_display if in Steam mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Jul 10, 2024
1 parent 2e12ec9 commit cf2497f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -621,8 +621,11 @@ static void UpdateCompatEnvVars()
{
setenv( "MANGOHUD_CONFIGFILE", szMangoConfigPath, 1 );

const char szDefaultConfig[] = "no_display";
fwrite( szDefaultConfig, 1, sizeof( szDefaultConfig ), pMangoConfigFile );
if ( steamMode )
{
const char szDefaultConfig[] = "no_display";
fwrite( szDefaultConfig, 1, sizeof( szDefaultConfig ), pMangoConfigFile );
}
fclose( pMangoConfigFile );
}
}
Expand Down

0 comments on commit cf2497f

Please sign in to comment.