Skip to content

Commit

Permalink
Fix the bug that configured compiler mode is not saved and always def…
Browse files Browse the repository at this point in the history
…aults to "Auto"
  • Loading branch information
blu3mania committed Oct 22, 2023
1 parent da97cd2 commit 9273cd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Plugin/Settings/SettingsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,11 @@ namespace papyrus {

constexpr tab_id_t compilerTab = std::to_underlying(Tab::Compiler);
if (isTabDialogCreated(compilerTab)) {
settings.compilerSettings.gameMode =
getChecked(compilerTab, IDC_SETTINGS_COMPILER_RADIO_SKYRIM) ? Game::Skyrim :
getChecked(compilerTab, IDC_SETTINGS_COMPILER_RADIO_SSE) ? Game::SkyrimSE :
getChecked(compilerTab, IDC_SETTINGS_COMPILER_RADIO_FO4) ? Game::Fallout4 :
Game::Auto;
settings.compilerSettings.allowUnmanagedSource = getChecked(compilerTab, IDC_SETTINGS_COMPILER_ALLOW_UNMANAGED_SOURCE);
settings.compilerSettings.autoModeOutputDirectory = getText(compilerTab, IDC_SETTINGS_COMPILER_AUTO_DEFAULT_OUTPUT);
settings.compilerSettings.autoModeDefaultGame = game::games[getText(compilerTab, IDC_SETTINGS_COMPILER_AUTO_DEFAULT_GAME_DROPDOWN)];
Expand Down

0 comments on commit 9273cd8

Please sign in to comment.