From 1bc6551758fd772d48d24ffdd3c49840f9fe371d Mon Sep 17 00:00:00 2001 From: pommicket Date: Wed, 13 Aug 2025 15:36:12 -0400 Subject: set Macondo Lexicon based on settings --- quacker/macondobackend.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'quacker/macondobackend.cpp') diff --git a/quacker/macondobackend.cpp b/quacker/macondobackend.cpp index 80a3f63..1cbd06a 100644 --- a/quacker/macondobackend.cpp +++ b/quacker/macondobackend.cpp @@ -1,5 +1,6 @@ #include "macondobackend.h" #include "datamanager.h" +#include "lexiconparameters.h" #include "quackleio/gcgio.h" #include "game.h" @@ -260,6 +261,14 @@ void MacondoBackend::processStarted() { } commands << "\n"; } + + std::string lexicon = QUACKLE_LEXICON_PARAMETERS->lexiconName(); + for (size_t i = 0; i < lexicon.size(); i++) { + if (lexicon[i] >= 'a' && lexicon[i] <= 'z') { + lexicon[i] += 'A' - 'a'; + } + } + commands << "set lexicon " << lexicon << "\n"; commands << "sim\n"; m_process->write(commands.str().c_str()); m_runningSimulation = true; -- cgit v1.2.3