void REPLAY::StartRecording( const std::string & newcartype, const std::string & newcarpaint, const MATHVECTOR<float, 3> & newcarcolor, const PTree & carconfig, const std::string & trackname, std::ostream & error_log) { track = trackname; cartype = newcartype; carpaint = newcarpaint; carcolor = newcarcolor; GetReadyToRecord(); std::stringstream carstream; write_ini(carconfig, carstream); carfile = carstream.str(); }
void REPLAY::StartRecording( const std::string & newcartype, const std::string & newcarpaint, float r, float g, float b, const PTree & carconfig, const std::string & trackname, std::ostream & error_log) { track = trackname; cartype = newcartype; carpaint = newcarpaint; carcolor_r = r; carcolor_g = g; carcolor_b = b; GetReadyToRecord(); std::stringstream carstream; carconfig.write(carstream); carfile = carstream.str(); }