Skip to content

Commit

Permalink
Get the language drop-down working.
Browse files Browse the repository at this point in the history
  • Loading branch information
henricj committed Apr 1, 2022
1 parent 2c0c877 commit c34bf89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Menu/OptionsMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,14 @@ OptionsMenu::OptionsMenu() : currentGameOptions(settings.gameOptions) {
determineAvailableScreenResolutions();

const auto languagesList = getFileNamesList(getDuneLegacyDataDir() / "locale", "po", true, FileListOrder_Name_Asc);
std::vector<std::string> availLanguages;
availLanguages.reserve(languagesList.size());

for (const auto& ll : languagesList)
availLanguages.emplace_back(ll.u8string());

// set up window
const auto* const pBackground = pGFXManager->getUIGraphic(UI_MenuBackground);
setBackground(pBackground);
OptionsMenu::setBackground(pBackground);
OptionsMenu::resize(getTextureSize(pBackground));

OptionsMenu::setWindowWidget(&windowWidget);
Expand Down

0 comments on commit c34bf89

Please # to comment.