Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2017-10-30 20:15:41 +0300
committerbubnikv <bubnikv@gmail.com>2017-10-30 20:15:41 +0300
commit1fee3633a05870c5cb83c7e850f1c0e22c4d1276 (patch)
tree6e014837828520cfb7aad2259de91cbb8c605c08 /xs/src/libslic3r/GCode.cpp
parent835e5b71a84d867d50109c6016420ed99316f0aa (diff)
New C++ class AppConfig for maintaining the config.ini
New helper function for generating a unified "generated by slic3r" header.
Diffstat (limited to 'xs/src/libslic3r/GCode.cpp')
-rw-r--r--xs/src/libslic3r/GCode.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/xs/src/libslic3r/GCode.cpp b/xs/src/libslic3r/GCode.cpp
index 48bf28882..b66861a4a 100644
--- a/xs/src/libslic3r/GCode.cpp
+++ b/xs/src/libslic3r/GCode.cpp
@@ -4,6 +4,7 @@
#include "Geometry.hpp"
#include "GCode/PrintExtents.hpp"
#include "GCode/WipeTowerPrusaMM.hpp"
+#include "Utils.hpp"
#include <algorithm>
#include <cstdlib>
@@ -11,7 +12,6 @@
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/find.hpp>
-#include <boost/date_time/local_time/local_time.hpp>
#include <boost/foreach.hpp>
#include <boost/nowide/iostream.hpp>
@@ -462,15 +462,7 @@ bool GCode::_do_export(Print &print, FILE *file)
m_enable_extrusion_role_markers = (bool)m_pressure_equalizer;
// Write information on the generator.
- {
- const auto now = boost::posix_time::second_clock::local_time();
- const auto date = now.date();
- fprintf(file, "; generated by Slic3r %s on %04d-%02d-%02d at %02d:%02d:%02d\n\n",
- SLIC3R_VERSION,
- // Local date in an ANSII format.
- int(now.date().year()), int(now.date().month()), int(now.date().day()),
- int(now.time_of_day().hours()), int(now.time_of_day().minutes()), int(now.time_of_day().seconds()));
- }
+ fprintf(file, "# %s\n\n", Slic3r::header_slic3r_generated().c_str());
// Write notes (content of the Print Settings tab -> Notes)
{
std::list<std::string> lines;