Skip to content

Commit

Permalink
ERF: Flush the stdout after each packing status message
Browse files Browse the repository at this point in the history
So that an error will always print behind the "...".
  • Loading branch information
DrMcCoy committed Jun 26, 2018
1 parent 9460d93 commit 16b0737
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/erf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ int main(int argc, char **argv) {
Aurora::ERFWriter erfWriter(id, files.size(), writeFile);
for (std::set<Common::UString>::const_iterator iter = files.begin(); iter != files.end(); ++iter, ++i) {
std::printf("Packing %u/%u: %s ... ", (uint)i, (uint)files.size(), iter->c_str());
std::fflush(stdout);

Common::UString file = *iter;
Common::ReadFile fileStream(file);
Expand Down

0 comments on commit 16b0737

Please sign in to comment.