mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #361, own reader to fix unbalanced " issue
* some functions renamed * move some code from .h to .cpp * adjusted samples
This commit is contained in:
@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
|
||||
BlackMisc::registerMetadata();
|
||||
|
||||
streamOut << "Run samples:" << endl;
|
||||
streamOut << "1 .. FS common / Simulation" << endl;
|
||||
streamOut << "1 .. FS common / Simulation (with cfg files reading)" << endl;
|
||||
streamOut << "2 .. FSX" << endl;
|
||||
streamOut << "3 .. Mappings" << endl;
|
||||
streamOut << "x .. exit" << endl;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace BlackSimTest
|
||||
return 0;
|
||||
}
|
||||
|
||||
streamOut << "start reading" << endl;
|
||||
streamOut << "start reading, press RETURN" << endl;
|
||||
QString input = streamIn.readLine();
|
||||
Q_UNUSED(input);
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace BlackSimTest
|
||||
std::unique_ptr<ISimulatorModelMappings> cvm(new CVPilotModelMappings(true));
|
||||
bool s = cvm->read();
|
||||
streamOut << "directory: " << CVPilotModelMappings::standardMappingsDirectory() << endl;
|
||||
streamOut << "loaded: " << (s ? "yes" : "no") << " size: " << cvm->size() << endl;
|
||||
streamOut << "loaded: " << BlackMisc::boolToYesNo(s) << " size: " << cvm->size() << endl;
|
||||
|
||||
// mapper with rule set, handing over ownership
|
||||
CAircraftMapper mapper(std::move(cvm));
|
||||
|
||||
Reference in New Issue
Block a user