2000-02-11 22:27:23 +00:00
|
|
|
// save.cxx -- class to save and restore a flight.
|
|
|
|
//
|
|
|
|
// Written by Curtis Olson, started November 1999.
|
|
|
|
//
|
|
|
|
// Copyright (C) 1999 David Megginson - david@megginson.com
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful, but
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
//
|
|
|
|
// $Id$
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
TODO:
|
|
|
|
- use a separate options object so that we can roll back on error
|
|
|
|
- use proper FGFS logging
|
|
|
|
- add view direction, and other stuff
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
2000-02-15 03:30:01 +00:00
|
|
|
#include <simgear/constants.h>
|
2000-02-16 23:01:03 +00:00
|
|
|
#include <simgear/math/fg_types.hxx>
|
2000-02-15 03:30:01 +00:00
|
|
|
|
2000-02-26 18:01:13 +00:00
|
|
|
#include "bfi.hxx"
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
FG_USING_NAMESPACE(std);
|
|
|
|
|
|
|
|
#define SAVE(name, value) { output << name << ": " << value << endl; }
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Save the current state of the simulator to a stream.
|
|
|
|
*/
|
|
|
|
bool
|
|
|
|
fgSaveFlight (ostream &output)
|
|
|
|
{
|
|
|
|
output << "#!fgfs" << endl;
|
|
|
|
|
|
|
|
//
|
|
|
|
// Simulation
|
|
|
|
//
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("flight-model", FGBFI::getFlightModel());
|
2000-05-06 21:47:53 +00:00
|
|
|
if (FGBFI::getAircraft().length() > 0)
|
|
|
|
SAVE("aircraft", FGBFI::getAircraft());
|
|
|
|
if (FGBFI::getAircraftDir().length() > 0)
|
|
|
|
SAVE("aircraft-dir", FGBFI::getAircraftDir());
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("time", FGBFI::getTimeGMT());
|
|
|
|
SAVE("hud", FGBFI::getHUDVisible());
|
|
|
|
SAVE("panel", FGBFI::getPanelVisible());
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Location
|
|
|
|
//
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("latitude", FGBFI::getLatitude());
|
|
|
|
SAVE("longitude", FGBFI::getLongitude());
|
2000-05-06 21:47:53 +00:00
|
|
|
|
|
|
|
// KLUDGE: deal with gear wierdness
|
2000-05-16 18:21:08 +00:00
|
|
|
// if (FGBFI::getAGL() < 6) {
|
|
|
|
// SAVE("altitude", FGBFI::getAltitude() - FGBFI::getAGL());
|
|
|
|
// } else {
|
2000-05-06 21:47:53 +00:00
|
|
|
SAVE("altitude", FGBFI::getAltitude());
|
2000-05-16 18:21:08 +00:00
|
|
|
// }
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Orientation
|
|
|
|
//
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("heading", FGBFI::getHeading());
|
|
|
|
SAVE("pitch", FGBFI::getPitch());
|
|
|
|
SAVE("roll", FGBFI::getRoll());
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Velocities
|
|
|
|
//
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("speed-north", FGBFI::getSpeedNorth());
|
|
|
|
SAVE("speed-east", FGBFI::getSpeedEast());
|
|
|
|
SAVE("speed-down", FGBFI::getSpeedDown());
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Primary controls
|
|
|
|
//
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("elevator", FGBFI::getElevator());
|
|
|
|
SAVE("aileron", FGBFI::getAileron());
|
|
|
|
SAVE("rudder", FGBFI::getRudder());
|
2000-02-11 22:27:23 +00:00
|
|
|
// FIXME: save each throttle separately
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("throttle", FGBFI::getThrottle());
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Secondary controls
|
|
|
|
//
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("elevator-trim", FGBFI::getElevatorTrim());
|
|
|
|
SAVE("flaps", FGBFI::getFlaps());
|
2000-07-23 00:11:04 +00:00
|
|
|
SAVE("brake", FGBFI::getBrakes());
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
//
|
2000-05-06 21:47:53 +00:00
|
|
|
// Radio navigation
|
|
|
|
//
|
|
|
|
SAVE("nav1-active-frequency", FGBFI::getNAV1Freq());
|
|
|
|
SAVE("nav1-standby-frequency", FGBFI::getNAV1AltFreq());
|
|
|
|
SAVE("nav1-selected-radial", FGBFI::getNAV1SelRadial());
|
|
|
|
SAVE("nav2-active-frequency", FGBFI::getNAV2Freq());
|
|
|
|
SAVE("nav2-standby-frequency", FGBFI::getNAV2AltFreq());
|
|
|
|
SAVE("nav2-selected-radial", FGBFI::getNAV2SelRadial());
|
|
|
|
SAVE("adf-active-frequency", FGBFI::getADFFreq());
|
|
|
|
SAVE("adf-standby-frequency", FGBFI::getADFAltFreq());
|
|
|
|
SAVE("adf-rotation", FGBFI::getADFRotation());
|
|
|
|
|
2000-02-11 22:27:23 +00:00
|
|
|
//
|
2000-05-06 21:47:53 +00:00
|
|
|
// Autopilot and GPS
|
|
|
|
//
|
|
|
|
if (FGBFI::getTargetAirport().length() > 0)
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("target-airport", FGBFI::getTargetAirport());
|
|
|
|
SAVE("autopilot-altitude-lock", FGBFI::getAPAltitudeLock());
|
|
|
|
SAVE("autopilot-altitude", FGBFI::getAPAltitude());
|
|
|
|
SAVE("autopilot-heading-lock", FGBFI::getAPHeadingLock());
|
2000-05-14 04:18:12 +00:00
|
|
|
SAVE("autopilot-heading", FGBFI::getAPHeadingMag());
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("autopilot-gps-lock", FGBFI::getGPSLock());
|
|
|
|
SAVE("autopilot-gps-lat", FGBFI::getGPSTargetLatitude());
|
|
|
|
SAVE("autopilot-gps-lon", FGBFI::getGPSTargetLongitude());
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Environment.
|
|
|
|
//
|
2000-02-26 18:01:13 +00:00
|
|
|
SAVE("visibility", FGBFI::getVisibility());
|
2000-05-06 21:47:53 +00:00
|
|
|
SAVE("clouds", FGBFI::getClouds());
|
|
|
|
SAVE("clouds-asl", FGBFI::getCloudsASL());
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Restore the current state of the simulator from a stream.
|
|
|
|
*/
|
|
|
|
bool
|
|
|
|
fgLoadFlight (istream &input)
|
|
|
|
{
|
2000-02-26 18:01:13 +00:00
|
|
|
// FGInterface * f = current_aircraft.fdm_state;
|
2000-02-11 22:27:23 +00:00
|
|
|
string text;
|
|
|
|
double n;
|
|
|
|
long int i;
|
|
|
|
|
|
|
|
if (!input.good() || input.eof()) {
|
|
|
|
cout << "Stream is no good!\n";
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
input >> text;
|
|
|
|
if (text != "#!fgfs") {
|
2000-02-26 18:01:13 +00:00
|
|
|
cerr << "Bad save file format!\n";
|
2000-02-11 22:27:23 +00:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
while (input.good() && !input.eof()) {
|
|
|
|
input >> text;
|
|
|
|
|
|
|
|
//
|
|
|
|
// Simulation.
|
|
|
|
//
|
|
|
|
|
|
|
|
if (text == "flight-model:") {
|
|
|
|
input >> i;
|
|
|
|
cout << "flight model is " << i << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setFlightModel(i);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
2000-05-06 21:47:53 +00:00
|
|
|
else if (text == "aircraft:") {
|
|
|
|
input >> text;
|
|
|
|
cout << "aircraft is " << text << endl;
|
|
|
|
FGBFI::setAircraft(text);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "aircraft-dir:") {
|
|
|
|
input >> text;
|
|
|
|
cout << "aircraft-dir is " << text << endl;
|
|
|
|
FGBFI::setAircraftDir(text);
|
|
|
|
}
|
|
|
|
|
2000-02-11 22:27:23 +00:00
|
|
|
else if (text == "time:") {
|
|
|
|
input >> i;
|
|
|
|
cout << "saved time is " << i << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setTimeGMT(i);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "hud:") {
|
|
|
|
input >> i;
|
|
|
|
cout << "hud status is " << i << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setHUDVisible(i);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "panel:") {
|
|
|
|
input >> i;
|
|
|
|
cout << "panel status is " << i << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setPanelVisible(i);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Location
|
|
|
|
//
|
|
|
|
|
|
|
|
else if (text == "latitude:") {
|
|
|
|
input >> n;
|
|
|
|
cout << "latitude is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setLatitude(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "longitude:") {
|
2000-02-11 22:27:23 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "longitude is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setLongitude(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "altitude:") {
|
2000-02-11 22:27:23 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "altitude is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setAltitude(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Orientation
|
|
|
|
//
|
|
|
|
|
|
|
|
else if (text == "heading:") {
|
|
|
|
input >> n;
|
|
|
|
cout << "heading is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setHeading(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "pitch:") {
|
2000-02-11 22:27:23 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "pitch is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setPitch(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "roll:") {
|
2000-02-11 22:27:23 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "roll is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setRoll(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Velocities
|
|
|
|
//
|
|
|
|
|
|
|
|
else if (text == "speed-north:") {
|
|
|
|
input >> n;
|
|
|
|
cout << "speed north is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setSpeedNorth(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "speed-east:") {
|
2000-02-11 22:27:23 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "speed east is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setSpeedEast(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "speed-down:") {
|
2000-02-11 22:27:23 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "speed down is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setSpeedDown(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Primary controls
|
|
|
|
//
|
|
|
|
|
|
|
|
else if (text == "elevator:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "elevator is " << n << endl;
|
|
|
|
FGBFI::setElevator(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "aileron:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "aileron is " << n << endl;
|
|
|
|
FGBFI::setAileron(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "rudder:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "rudder is " << n << endl;
|
|
|
|
FGBFI::setRudder(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// FIXME: assumes single engine
|
|
|
|
else if (text == "throttle:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "throttle is " << n << endl;
|
|
|
|
FGBFI::setThrottle(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Secondary controls
|
|
|
|
|
|
|
|
else if (text == "elevator-trim:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "elevator trim is " << n << endl;
|
|
|
|
FGBFI::setElevatorTrim(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "flaps:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "flaps are " << n << endl;
|
|
|
|
FGBFI::setFlaps(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "brake:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "brake is " << n << endl;
|
2000-07-23 00:11:04 +00:00
|
|
|
FGBFI::setBrakes(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
2000-05-06 21:47:53 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Radio navigation
|
|
|
|
//
|
|
|
|
|
|
|
|
else if (text == "nav1-active-frequency:") {
|
|
|
|
input >> n;
|
|
|
|
FGBFI::setNAV1Freq(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "nav1-standby-frequency:") {
|
|
|
|
input >> n;
|
|
|
|
FGBFI::setNAV1AltFreq(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "nav1-selected-radial:") {
|
|
|
|
input >> n;
|
|
|
|
FGBFI::setNAV1SelRadial(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "nav2-active-frequency:") {
|
|
|
|
input >> n;
|
|
|
|
FGBFI::setNAV2Freq(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "nav2-standby-frequency:") {
|
|
|
|
input >> n;
|
|
|
|
FGBFI::setNAV2AltFreq(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "nav2-selected-radial:") {
|
|
|
|
input >> n;
|
|
|
|
FGBFI::setNAV2SelRadial(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "adf-active-frequency:") {
|
|
|
|
input >> n;
|
|
|
|
FGBFI::setADFFreq(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "adf-standby-frequency:") {
|
|
|
|
input >> n;
|
|
|
|
FGBFI::setADFAltFreq(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "adf-rotation:") {
|
|
|
|
input >> n;
|
|
|
|
FGBFI::setADFRotation(n);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2000-02-11 22:27:23 +00:00
|
|
|
//
|
2000-05-06 21:47:53 +00:00
|
|
|
// Autopilot and GPS
|
2000-02-11 22:27:23 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
else if (text == "target-airport:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> text;
|
|
|
|
cout << "target airport is " << text << endl;
|
|
|
|
FGBFI::setTargetAirport(text);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "autopilot-altitude-lock:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> i;
|
|
|
|
cout << "autopilot altitude lock is " << i << endl;
|
|
|
|
FGBFI::setAPAltitudeLock(i);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "autopilot-altitude:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "autopilot altitude is " << n << endl;
|
|
|
|
FGBFI::setAPAltitude(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "autopilot-heading-lock:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> i;
|
|
|
|
cout << "autopilot heading lock is " << i << endl;
|
|
|
|
FGBFI::setAPHeadingLock(i);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "autopilot-heading:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "autopilot heading is " << n << endl;
|
2000-05-14 04:18:12 +00:00
|
|
|
FGBFI::setAPHeadingMag(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "autopilot-gps-lock:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> i;
|
|
|
|
cout << "autopilot GPS lock is " << i << endl;
|
|
|
|
FGBFI::setGPSLock(i);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "autopilot-gps-lat:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "GPS target latitude is " << n << endl;
|
|
|
|
FGBFI::setGPSTargetLatitude(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "autopilot-gps-lon:") {
|
2000-02-26 18:01:13 +00:00
|
|
|
input >> n;
|
|
|
|
cout << "GPS target longitude is " << n << endl;
|
|
|
|
FGBFI::setGPSTargetLongitude(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
// Environment.
|
|
|
|
//
|
|
|
|
|
|
|
|
else if (text == "visibility:") {
|
|
|
|
input >> n;
|
|
|
|
cout << "visibility is " << n << endl;
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::setVisibility(n);
|
2000-02-11 22:27:23 +00:00
|
|
|
}
|
|
|
|
|
2000-05-06 21:47:53 +00:00
|
|
|
else if (text == "clouds:") {
|
|
|
|
input >> i;
|
|
|
|
cout << "clouds is " << i << endl;
|
|
|
|
FGBFI::setClouds(i);
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (text == "clouds-asl:") {
|
|
|
|
input >> n;
|
|
|
|
cout << "clouds-asl is " << n << endl;
|
|
|
|
FGBFI::setCloudsASL(n);
|
|
|
|
}
|
|
|
|
|
2000-02-11 22:27:23 +00:00
|
|
|
//
|
|
|
|
// Don't die if we don't recognize something
|
|
|
|
//
|
|
|
|
|
|
|
|
else {
|
|
|
|
cerr << "Skipping unknown field: " << text << endl;
|
|
|
|
input >> text;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2000-02-26 18:01:13 +00:00
|
|
|
FGBFI::update();
|
2000-02-11 22:27:23 +00:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
// end of save.cxx
|