21#ifndef INCLUDED_LOADER
22#define INCLUDED_LOADER
157extern Status LDR_ProgressiveLoad(
double time_budget,
wchar_t* next_description,
size_t max_chars,
int* progress_percent);
168#define LDR_CHECK_TIMEOUT(completed_jobs, total_jobs)\
169 if(timer_Time() > end_time)\
171 size_t progress_percent = ((completed_jobs)*100 / (total_jobs));\
173 if(progress_percent == 0)\
174 progress_percent = 1;\
175 ENSURE(0 < progress_percent && progress_percent <= 100);\
176 return (int)progress_percent;\
void LDR_EndRegistering()
Definition: Loader.cpp:118
void LDR_Cancel()
Definition: Loader.cpp:134
std::function< int(double)> LoadFunc
Definition: Loader.h:117
Status LDR_ProgressiveLoad(double time_budget, wchar_t *next_description, size_t max_chars, int *progress_percent)
Definition: Loader.cpp:182
Status LDR_NonprogressiveLoad()
Definition: Loader.cpp:297
void LDR_Register(LoadFunc func, const wchar_t *description, int estimated_duration_ms)
Definition: Loader.cpp:108
void LDR_BeginRegistering()
Definition: Loader.cpp:91
i64 Status
Error handling system.
Definition: status.h:173