17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 16:49:21 +02:00
Files
maszyna/export_e3d_standalone.cpp
maj00r 02c6e6895e cover the units that are not module units
The template-header propagation only walked files with a module
declaration, so EU07.cpp, windows.cpp, export_e3d_standalone.cpp and
every betterRenderer source were outside it - including the file with
main(). They reach cParser and friends through eu07.simcore and
instantiate their templates without the headers those bodies name.

Adds audit_modules.py, which checks the whole tree for the seven classes
this migration hit; all seven are clean now.
2026-09-10 02:04:06 +02:00

30 lines
745 B
C++

#include "utilities/Globals_macros.h"
#include <string>
#include <array>
#include <chrono>
#include <cstddef>
#include <deque>
#include <limits>
#include <mutex>
#include <ostream>
#include <sstream>
#include <type_traits>
#include <unordered_map>
#include <utility>
#include <vector>
import eu07.simcore;
import eu07.utilities.globals;
import eu07.rendering.renderer;
void export_e3d_standalone(std::string in, std::string out, int flags, bool dynamic)
{
Global.iConvertModels = flags;
Global.iWriteLogEnabled = 2;
Global.ParserLogIncludes = true;
GfxRenderer = gfx_renderer_factory::get_instance()->create("null");
TModel3d model;
model.LoadFromTextFile(in, dynamic);
model.Init();
model.SaveToBinFile(out);
}