OldSchool Library
|
Functions to display Sony's dialogs. More...
Functions | |
int | oslDialogDrawAndWait (int dialogType) |
Universal routine which draws the current dialog (of the given dialog type) and waits for the user to finish interacting with it. | |
int | oslDialogIsActive () |
Tests whether any of the ERROR, MESSAGE, or NETCONF dialogs is currently active. | |
int | oslInitMessageDialog (const char *message, int enableYesno) |
Initializes a Message Dialog. | |
int | oslInitErrorDialog (const unsigned int error) |
Initializes an Error Dialog. | |
void | oslDrawDialog () |
Draws the current dialog to the screen. | |
int | oslGetDialogType () |
Returns the current dialog type. | |
int | oslGetDialogStatus () |
Returns the current dialog status. | |
int | oslGetDialogButtonPressed () |
Returns the button pressed in the dialog (only for message dialogs with enableYesno == 1). | |
int | oslInitNetDialog () |
Initializes the network configuration dialog. | |
int | oslDialogGetResult () |
Gets the dialog result (either OSL_DIALOG_CANCEL or OSL_DIALOG_OK). | |
void | oslEndDialog () |
Ends the current dialog. | |
Functions to display Sony's dialogs.
This module provides various functions and definitions for handling Sony's PSP dialogs, such as message dialogs, error dialogs, and network configuration dialogs.
int oslDialogDrawAndWait | ( | int | dialogType | ) |
Universal routine which draws the current dialog (of the given dialog type) and waits for the user to finish interacting with it.
dialogType | The type of dialog to be drawn. |
int oslDialogIsActive | ( | ) |
Tests whether any of the ERROR, MESSAGE, or NETCONF dialogs is currently active.
int oslInitMessageDialog | ( | const char * | message, |
int | enableYesno ) |
Initializes a Message Dialog.
message | Text shown in the message dialog. |
enableYesno | If set to 1, the dialog will have Yes/No options. |
int oslInitErrorDialog | ( | const unsigned int | error | ) |
Initializes an Error Dialog.
error | Error code to be displayed in the dialog. |
void oslDrawDialog | ( | ) |
Draws the current dialog to the screen.
After drawing, check if the user has closed it by calling oslGetDialogStatus. If the dialog is closed, remember to call oslEndDialog.
int oslGetDialogType | ( | ) |
Returns the current dialog type.
int oslGetDialogStatus | ( | ) |
Returns the current dialog status.
int oslGetDialogButtonPressed | ( | ) |
Returns the button pressed in the dialog (only for message dialogs with enableYesno == 1).
int oslInitNetDialog | ( | ) |
Initializes the network configuration dialog.
int oslDialogGetResult | ( | ) |
Gets the dialog result (either OSL_DIALOG_CANCEL or OSL_DIALOG_OK).