version 2.91.0, PITextStream works
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user