Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3d23aa84ae
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (40 sloc) 1.663 kb
#pragma once
#include <psl1ght/types.h>
#include <stdlib.h>
EXTERN_BEGIN
typedef enum {
MSGDIALOG_ERROR = 0,
MSGDIALOG_NORMAL = 1,
MSGDIALOG_MUTE_ON = 2,
MSGDIALOG_BACKGROUND_INVISIBLE = 4,
MSGDIALOG_BUTTON_TYPE_YESNO = 16,
MSGDIALOG_BUTTON_TYPE_OK = 32,
MSGDIALOG_DISABLE_CANCEL_ON = 128,
MSGDIALOG_DEFAULT_CURSOR_NO = 256,
MSGDIALOG_SINGLE_PROGRESSBAR = 4096,
MSGDIALOG_DOUBLE_PROGRESSBAR = 8192
} msgType;
typedef enum {
MSGDIALOG_BUTTON_NONE = -1,
MSGDIALOG_BUTTON_INVALID,
MSGDIALOG_BUTTON_OK,
MSGDIALOG_BUTTON_YES = 1,
MSGDIALOG_BUTTON_NO,
MSGDIALOG_BUTTON_ESCAPE
} msgButton;
typedef void (*msgDialog)(msgButton button, void *userdata);
s32 msgDialogOpen(msgType type, const char * msg, msgDialog func, void * userdata, void *unused);
s32 msgDialogOpen_ex(msgType type, const char * msg, opd32 * func, void * userdata, void *unused);
s32 msgDialogOpen2(msgType type, const char * msg, msgDialog func, void * userdata, void *unused);
s32 msgDialogOpen2_ex(msgType type, const char * msg, opd32 * func, void * userdata, void *unused);
s32 msgDialogAbort(void);
s32 msgDialogClose(void);
s32 msgDialogDelayedClose(float ms);
s32 msgDialogErrorCode(u32 errorcode, msgDialog func, void * userdata, void *unused);
s32 msgDialogErrorCode_ex(u32 errorcode, opd32 * func, void * userdata, void *unused);
#define PROGRESSBAR_INDEX0 0
#define PROGRESSBAR_INDEX1 1
s32 msgDialogProgressBarMessage(u32 index, const char * msg);
s32 msgDialogResetProgressBar(u32 index);
s32 msgDialogIncProgressBar(u32 index, u32 percent);
EXTERN_END
Jump to Line
Something went wrong with that request. Please try again.