Skip to content

Commit

Permalink
Use config defaults in the headless binary.
Browse files Browse the repository at this point in the history
Fixes #19332
  • Loading branch information
hrydgard committed Jul 17, 2024
1 parent 5d365e2 commit 970cc5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions headless/Headless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,8 @@ int main(int argc, const char* argv[])
coreParameter.pixelHeight = 272;
coreParameter.fastForward = true;

// NOTE: In headless mode, we never save the config. This is just for this run.
g_Config.RestoreDefaults(RestoreSettingsBits::SETTINGS | RestoreSettingsBits::CONTROLS);
g_Config.bEnableSound = false;
g_Config.bFirstRun = false;
g_Config.bIgnoreBadMemAccess = true;
Expand Down

0 comments on commit 970cc5d

Please sign in to comment.