16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 13:39:18 +02:00

change screenshot key, configurable location

This commit is contained in:
milek7
2018-01-29 11:17:13 +01:00
parent fa431fd1fe
commit 07b0ac6a95
4 changed files with 22 additions and 10 deletions

View File

@@ -178,6 +178,8 @@ Global::soundmode_t Global::soundpitchmode = Global::linear;
Global::soundmode_t Global::soundgainmode = Global::linear;
Global::soundstopmode_t Global::soundstopmode = Global::queue;
std::string Global::screenshot_dir = "screenshots";
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
@@ -808,6 +810,11 @@ void Global::ConfigParse(cParser &Parser)
Parser >> Global::motiontelemetry_conf.latposbased;
Parser >> Global::motiontelemetry_conf.axlebumpscale;
}
else if (token == "screenshotsdir")
{
Parser.getTokens(1);
Parser >> Global::screenshot_dir;
}
} while ((token != "") && (token != "endconfig")); //(!Parser->EndOfFile)
// na koniec trochę zależności
if (!bLoadTraction) // wczytywanie drutów i słupów