fix(relinker): separate console sections without spacing every message
This commit is contained in:
parent
6f2e4b6902
commit
868d7a138d
|
|
@ -35,7 +35,11 @@ public:
|
|||
return;
|
||||
}
|
||||
if (event.Stage == Domain::ProgressStage::Imports) {
|
||||
if (event.Completed == 0) Message("Import analysis\n");
|
||||
if (event.Completed == 0) {
|
||||
Finish();
|
||||
stream << '\n';
|
||||
Message("Import analysis\n");
|
||||
}
|
||||
else Finish();
|
||||
return;
|
||||
}
|
||||
|
|
@ -65,7 +69,7 @@ public:
|
|||
}
|
||||
|
||||
void Message(std::string_view message) override {
|
||||
Finish();
|
||||
if (active) Finish();
|
||||
stream << message;
|
||||
if (!message.empty() && message.back() != '\n') stream << '\n';
|
||||
stream << std::flush;
|
||||
|
|
@ -73,7 +77,7 @@ public:
|
|||
}
|
||||
|
||||
void Finish() {
|
||||
if (active || messages) stream << (active ? "\n\n" : "\n") << std::flush;
|
||||
if (active || messages) stream << '\n' << std::flush;
|
||||
active = false;
|
||||
messages = false;
|
||||
lineWidth = 0;
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ int Run(const int argc, char* argv[]) {
|
|||
}
|
||||
progress.Finish();
|
||||
if (desktopEntry) std::cout << "Desktop entry: " << Io::Utf8Path(desktopEntryWriter.Write(*desktopEntry)) << '\n';
|
||||
std::cout << "Conversion complete\n\n"
|
||||
std::cout << "\nConversion complete\n\n"
|
||||
<< " Output file: " << absPath << '\n'
|
||||
<< " External prx references: " << executables.front().Result.RegistryEntries.size() << '\n'
|
||||
<< " Converted modules: " << guestArtifacts.size() << "\n\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue