Skip to content

Commit a7aafa8

Browse files
cmaughansamaaron
authored andcommitted
Fixes from Ethan
- Typos - Bad settings arguments
1 parent a7a6563 commit a7aafa8

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

app/api/include/api/sonicpi_api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,12 @@ struct APISettings
234234
code = "use_cue_logging false #__nosave__ set by Qt GUI user preferences.\n" + code;
235235
}
236236

237-
if (!checkArgs)
237+
if (checkArgs)
238238
{
239239
code = "use_arg_checks true #__nosave__ set by Qt GUI user preferences.\n" + code;
240240
}
241241

242-
if (!enableExternalSynths)
242+
if (enableExternalSynths)
243243
{
244244
code = "use_external_synths true #__nosave__ set by Qt GUI user preferences.\n" + code;
245245
}

app/api/src/sonicpi_api.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ bool SonicPiAPI::Init(const fs::path& root)
560560
{
561561
MessageInfo message;
562562
message.type = MessageType::StartupError;
563-
message.text = "Couldnot find root path: " + root.string();
563+
message.text = "Could not find root path: " + root.string();
564564

565565
m_pClient->Report(message);
566566
return false;
@@ -589,7 +589,7 @@ bool SonicPiAPI::Init(const fs::path& root)
589589
m_paths[SonicPiPath::ExitScriptPath] = m_paths[SonicPiPath::RootPath] / "app/server/ruby/bin/exit-script.rb";
590590
m_paths[SonicPiPath::TaskRegisterPath] = m_paths[SonicPiPath::RootPath] / "app/server/ruby/bin/task-register.rb";
591591

592-
// Sanity check on script existance
592+
// Sanity check on script existence
593593
const auto checkPaths = std::vector<SonicPiPath>{ SonicPiPath::RubyServerPath, SonicPiPath::PortDiscoveryPath, SonicPiPath::FetchUrlPath, SonicPiPath::InitScriptPath, SonicPiPath::ExitScriptPath, SonicPiPath::TaskRegisterPath };
594594
for (const auto& check : checkPaths)
595595
{

app/api/src/sonicpi_api.test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ TEST_CASE("Init", "API")
7070

7171
api.Shutdown();
7272

73-
// Get the logs after shutdown because tehn cout is not redirected...
73+
// Get the logs after shutdown because then cout is not redirected...
7474
std::cout << "Logs: " << std::endl
7575
<< api.GetLogs() << std::flush;
7676

7777
// Require this later to ensure logs are dumped
7878
//REQUIRE(executeResult == true);
7979
}
80-

0 commit comments

Comments
 (0)