mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-06-22 07:42:55 +00:00
Some checks are pending
* Unify renderers into one build, no more segregation * Fix Linux compilation error * How does one miss this * Rename this * Fix silly naming error that I missed * Update Russian translation
29 lines
751 B
C
29 lines
751 B
C
#ifndef LOADING_HEADER
|
|
#define LOADING_HEADER
|
|
|
|
#include "src/pc/thread.h"
|
|
#include "djui/djui_hud_utils.h"
|
|
|
|
struct LoadingSegment {
|
|
char str[256];
|
|
f32 percentage;
|
|
};
|
|
|
|
extern struct LoadingSegment gCurrLoadingSegment;
|
|
|
|
#define LOADING_SCREEN_MUTEX(...) \
|
|
if (!gCLIOpts.hideLoadingScreen && gLoadingThread.state == RUNNING) { \
|
|
pthread_mutex_lock(&gLoadingThread.mutex); \
|
|
__VA_ARGS__; \
|
|
pthread_mutex_unlock(&gLoadingThread.mutex); \
|
|
}
|
|
|
|
extern struct ThreadHandle gLoadingThread;
|
|
|
|
void loading_screen_set_segment_text(const char* text);
|
|
void loading_screen_reset_progress_bar(void);
|
|
void render_loading_screen(void);
|
|
void loading_screen_reset(void);
|
|
void render_rom_setup_screen(void);
|
|
|
|
#endif // LOADING_HEADER
|