mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-18 23:51:51 -06:00
Unified the creation of paths of debugging output files
pointing to a predefined output directory.
This commit is contained in:
parent
59f3fed9f2
commit
15d3e94a66
13 changed files with 42 additions and 74 deletions
|
@ -65,7 +65,7 @@ void confess_at(const char *file, int line, const char *func, const char *pat, .
|
|||
#define SLIC3R_CPPVER 0
|
||||
#endif
|
||||
|
||||
#define DEBUG_FILE_PREFIX "out/"
|
||||
#define SLIC3R_DEBUG_OUT_PATH_PREFIX "out/"
|
||||
|
||||
inline std::string debug_out_path(const char *name, ...)
|
||||
{
|
||||
|
@ -74,7 +74,7 @@ inline std::string debug_out_path(const char *name, ...)
|
|||
va_start(args, name);
|
||||
std::vsprintf(buffer, name, args);
|
||||
va_end(args);
|
||||
return std::string(DEBUG_FILE_PREFIX) + std::string(buffer);
|
||||
return std::string(SLIC3R_DEBUG_OUT_PATH_PREFIX) + std::string(buffer);
|
||||
}
|
||||
|
||||
// Write slices as SVG images into out directory during the 2D processing of the slices.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue