version 2.91.0, PITextStream works

This commit is contained in:
2022-05-13 11:26:01 +03:00
parent ef8ffcd02f
commit 1028233553
10 changed files with 285 additions and 333 deletions

View File

@@ -23,6 +23,7 @@
#ifndef MICRO_PIP
# include "pisysteminfo.h"
# include "pifile.h"
# include "piiostream.h"
#endif
@@ -753,7 +754,8 @@ bool dumpApplicationToFile(const PIString & path, bool with_objects) {
bool ba = PICout::isBufferActive();
PICout::setBufferActive(true, true);
dumpApplication(with_objects);
f << PICout::buffer();
PIIOTextStream ts(&f);
ts << PICout::buffer();
f.close();
PICout::setBufferActive(ba, true);
PIFile::rename(path + "_tmp", path);