View Single Post
Old 02-14-2003, 03:11 PM  
Lunatik
Member
 
Join Date: Nov 2002
Posts: 40
Default

Progress bar Suggestion. Since windows does not allow you to use colons in the filename or directory name I played around and found a good one to use to allow the progress meter bar to work properly.

in convert.h change

Code:
/*
 * Modified: Unknown
 */
void buffer_progress_bar(struct VARS *raceI) {
 int	n;

 raceI->misc.progress_bar[14] = 0;
 for ( n = 0 ; n < (raceI->total.files - raceI->total.files_missing) * 14 / raceI->total.files ; n++) raceI->misc.progress_bar[n] = '#';
 for ( ; n < 14 ; n++) raceI->misc.progress_bar[n] = ':';
}
to

Code:
/*
 * Modified: Unknown
 */
void buffer_progress_bar(struct VARS *raceI) {
 int	n;

 raceI->misc.progress_bar[14] = 0;
 for ( n = 0 ; n < (raceI->total.files - raceI->total.files_missing) * 14 / raceI->total.files ; n++) raceI->misc.progress_bar[n] = '#';
 for ( ; n < 14 ; n++) raceI->misc.progress_bar[n] = '_';
}

in config.h change
Code:
#define progressmeter		"[tR] - %3.0p%% Complete - [tR]"
#define del_progressmeter	"\\[tR] - ...% Complete - \\[tR]"
to

Code:
#define progressmeter		"[%V] - %3.0p%% Complete - [CN]"
#define del_progressmeter	"\\[..............] - ...% Complete - \\[CN]"
Lunatik is offline   Reply With Quote