102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
Loading...
Searching...
No Matches
dttr_loader_ui.h File Reference
#include <stdbool.h>
#include <stddef.h>

Go to the source code of this file.

Data Structures

struct  DTTR_LoaderUIDiscCandidate

Typedefs

typedef enum DTTR_LoaderUIChoice DTTR_LoaderUIChoice
typedef struct DTTR_LoaderUIDiscCandidate DTTR_LoaderUIDiscCandidate

Enumerations

enum  { DTTR_LOADER_UI_MAX_DISC_CANDIDATES = 8 , DTTR_LOADER_UI_CHOICE_DISC_BASE = 100 }
enum  DTTR_LoaderUIChoice { DTTR_LOADER_UI_CHOICE_EXIT = 0 , DTTR_LOADER_UI_CHOICE_BROWSE_FOLDER = 1 , DTTR_LOADER_UI_CHOICE_BROWSE_ISO = 2 }

Functions

DTTR_LoaderUIChoice DTTR_LoaderUI_ChoiceFromID (int choice_id)
bool DTTR_LoaderUI_ChoiceIsBrowse (DTTR_LoaderUIChoice choice)
DTTR_LoaderUIChoice DTTR_LoaderUI_DiscChoiceForIndex (size_t index)
bool DTTR_LoaderUI_ChoiceIsDisc (DTTR_LoaderUIChoice choice, size_t *out_index)
DTTR_LoaderUIChoice DTTR_LoaderUI_ChooseGameSource (const DTTR_LoaderUIDiscCandidate *disc_candidates, size_t disc_candidate_count)
void DTTR_LoaderUI_ShowError (const char *title, const char *message)

Typedef Documentation

◆ DTTR_LoaderUIChoice

◆ DTTR_LoaderUIDiscCandidate

typedef struct DTTR_LoaderUIDiscCandidate DTTR_LoaderUIDiscCandidate

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DTTR_LOADER_UI_MAX_DISC_CANDIDATES 
DTTR_LOADER_UI_CHOICE_DISC_BASE 

Definition at line 11 of file dttr_loader_ui.h.

◆ DTTR_LoaderUIChoice

Enumerator
DTTR_LOADER_UI_CHOICE_EXIT 
DTTR_LOADER_UI_CHOICE_BROWSE_FOLDER 
DTTR_LOADER_UI_CHOICE_BROWSE_ISO 

Definition at line 16 of file dttr_loader_ui.h.

Function Documentation

◆ DTTR_LoaderUI_ChoiceFromID()

DTTR_LoaderUIChoice DTTR_LoaderUI_ChoiceFromID ( int choice_id)

◆ DTTR_LoaderUI_ChoiceIsBrowse()

bool DTTR_LoaderUI_ChoiceIsBrowse ( DTTR_LoaderUIChoice choice)

◆ DTTR_LoaderUI_ChoiceIsDisc()

bool DTTR_LoaderUI_ChoiceIsDisc ( DTTR_LoaderUIChoice choice,
size_t * out_index )

◆ DTTR_LoaderUI_ChooseGameSource()

◆ DTTR_LoaderUI_DiscChoiceForIndex()

DTTR_LoaderUIChoice DTTR_LoaderUI_DiscChoiceForIndex ( size_t index)

◆ DTTR_LoaderUI_ShowError()

void DTTR_LoaderUI_ShowError ( const char * title,
const char * message )