* Enabled StrIds in language.c for this with some adjustments. * Moved sockets init/exit into netloaderInit/netloaderExit, netloaderInit now returns Result. * Changed the params for netloaderGetState to an output struct. * In netloaderTask(), check netloader_exitflag at the end before clearing it. * Moved code calling loadnro from netloader_loop into netloaderTask. * Call thrd_sleep with the while-loop calling netloader_loop in netloaderTask. * Various other changes.
17 lines
361 B
C
17 lines
361 B
C
#pragma once
|
|
|
|
typedef struct
|
|
{
|
|
uint32_t width;
|
|
uint32_t height;
|
|
color_t *bg;
|
|
char *text;
|
|
} MessageBox;
|
|
|
|
void menuCreateMsgBox(int width, int height, const char *text);
|
|
void menuCloseMsgBox();
|
|
bool menuIsMsgBoxOpen();
|
|
void menuDrawMsgBox(void);
|
|
MessageBox menuGetCurrentMsgBox();
|
|
void menuMsgBoxSetNetloaderState(bool enabled, const char *text);
|