Skip to content
Extraits de code Groupes Projets
Valider 95bccb4e rédigé par Karl Blomster's avatar Karl Blomster
Parcourir les fichiers

use slightly different method for updating progress display in ffmsindex.exe,...

use slightly different method for updating progress display in ffmsindex.exe, might make some GUI makers happy

Originally committed to SVN as r2467.
parent 671a788a
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -120,12 +120,12 @@ static int FFMS_CC UpdateProgress(int State, int64_t Current, int64_t Total, voi
*LastPercentage = Percentage;
if (Percentage < 10)
/*if (Percentage < 10)
cout << "\b\b";
else
cout << "\b\b\b";
cout << "\b\b\b"; */
cout << Percentage << "%";
cout << "Indexing, please wait... " << Percentage << "% \r";
return 0;
}
......@@ -138,16 +138,16 @@ void DoIndexing () {
Index = FFMS_ReadIndex(CacheFile.c_str(), FFMSErrMsg, MsgSize);
if (Overwrite || Index == NULL) {
std::cout << "Indexing, please wait... 0%";
std::cout << "Indexing, please wait... 0% \r";
Index = FFMS_MakeIndex(InputFile.c_str(), TrackMask, DumpMask, AudioFile.c_str(), IgnoreErrors, UpdateProgress, &Progress, FFMSErrMsg, MsgSize);
if (Index == NULL) {
std::string Err = "Indexing error: ";
std::string Err = "\nIndexing error: ";
Err.append(FFMSErrMsg);
throw Err;
}
if (Progress != 100)
std::cout << "\b\b\b100%";
std::cout << "Indexing, please wait... 100% \r";
std::cout << std::endl << "Writing index... ";
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter