WIP: prusa-gcodeviewer command line wrapper to start the PrusaSlicer

in standalone G-code viewer mode.
Linux and OSX stuff will follow.
This commit is contained in:
bubnikv 2020-09-01 16:56:12 +02:00
parent ac9e1e8e4a
commit 08580a9b18
6 changed files with 52 additions and 1 deletions

View file

@ -221,6 +221,11 @@ int wmain(int argc, wchar_t **argv)
std::vector<wchar_t*> argv_extended;
argv_extended.emplace_back(argv[0]);
#ifdef SLIC3R_WRAPPER_GCODEVIEWER
wchar_t gcodeviewer_param[] = L"--gcodeviewer";
argv_extended.emplace_back(gcodeviewer_param);
#endif /* SLIC3R_WRAPPER_GCODEVIEWER */
#ifdef SLIC3R_GUI
// Here one may push some additional parameters based on the wrapper type.
bool force_mesa = false;