| 194 | } |
| 195 | |
| 196 | void GDREProgressDialog::Task::print_status_bar() const { |
| 197 | if (!is_headless) { |
| 198 | return; |
| 199 | } |
| 200 | constexpr int width = 30; |
| 201 | float print_progress = MIN(MAX(0.0f, (float)current_step.step / (float)steps), 100.0f); |
| 202 | GDRELogger::print_status_bar(label, print_progress, indeterminate ? (float)indeterminate_width / (float)width : -1); |
| 203 | } |
| 204 | |
| 205 | bool GDREProgressDialog::Task::should_redraw(uint64_t curr_time_us) const { |
| 206 | if (is_headless) { |