OldSchool Library
Save and Load

Functions to use the save and load screen. More...

Data Structures

struct  oslSaveLoad
 Structure containing data to save/load. More...
 

Macros

#define OSL_SAVELOAD_CANCEL   1
 Indicates that the save/load operation was canceled.
 
#define OSL_SAVELOAD_OK   0
 Indicates that the save/load operation was successful.
 
#define OSL_DIALOG_SAVE   1
 Indicates a save dialog type.
 
#define OSL_DIALOG_LOAD   2
 Indicates a load dialog type.
 
#define OSL_DIALOG_DELETE   3
 Indicates a delete dialog type.
 

Functions

void oslInitSaveDialog (struct oslSaveLoad *saveData)
 Initializes the save dialog.
 
void oslInitMultiSaveDialog (struct oslSaveLoad *saveData)
 Initializes the multi-list save dialog.
 
void oslInitSingleSaveDialog (struct oslSaveLoad *saveData)
 Initializes the single save dialog.
 
void oslInitAutoSaveDialog (struct oslSaveLoad *saveData)
 Initializes the automatic save dialog.
 
void oslInitLoadDialog (struct oslSaveLoad *loadData)
 Initializes the load dialog.
 
void oslInitMultiLoadDialog (struct oslSaveLoad *loadData)
 Initializes the multi-list load dialog.
 
void oslInitSingleLoadDialog (struct oslSaveLoad *loadData)
 Initializes the single load dialog.
 
void oslInitAutoLoadDialog (struct oslSaveLoad *loadData)
 Initializes the automatic load dialog.
 
void oslInitDeleteDialog (struct oslSaveLoad *deleteData)
 Initializes the delete dialog.
 
void oslDrawSaveLoad (void)
 Draws the save/load dialog.
 
int oslGetLoadSaveStatus (void)
 Returns the current dialog status.
 
int oslGetSaveLoadType (void)
 Returns the current dialog type.
 
int oslSaveLoadGetResult (void)
 Gets the dialog's result.
 
void oslEndSaveLoadDialog (void)
 Ends the current dialog.
 

Detailed Description

Functions to use the save and load screen.

Function Documentation

◆ oslInitSaveDialog()

void oslInitSaveDialog ( struct oslSaveLoad * saveData)

Initializes the save dialog.

Parameters
saveDataPointer to a oslSaveLoad structure containing data to be saved.

◆ oslInitMultiSaveDialog()

void oslInitMultiSaveDialog ( struct oslSaveLoad * saveData)

Initializes the multi-list save dialog.

Parameters
saveDataPointer to a oslSaveLoad structure containing data to be saved.

◆ oslInitSingleSaveDialog()

void oslInitSingleSaveDialog ( struct oslSaveLoad * saveData)

Initializes the single save dialog.

Parameters
saveDataPointer to a oslSaveLoad structure containing data to be saved.

◆ oslInitAutoSaveDialog()

void oslInitAutoSaveDialog ( struct oslSaveLoad * saveData)

Initializes the automatic save dialog.

Parameters
saveDataPointer to a oslSaveLoad structure containing data to be saved.

◆ oslInitLoadDialog()

void oslInitLoadDialog ( struct oslSaveLoad * loadData)

Initializes the load dialog.

Parameters
loadDataPointer to a oslSaveLoad structure where data will be loaded.

◆ oslInitMultiLoadDialog()

void oslInitMultiLoadDialog ( struct oslSaveLoad * loadData)

Initializes the multi-list load dialog.

Parameters
loadDataPointer to a oslSaveLoad structure where data will be loaded.

◆ oslInitSingleLoadDialog()

void oslInitSingleLoadDialog ( struct oslSaveLoad * loadData)

Initializes the single load dialog.

Parameters
loadDataPointer to a oslSaveLoad structure where data will be loaded.

◆ oslInitAutoLoadDialog()

void oslInitAutoLoadDialog ( struct oslSaveLoad * loadData)

Initializes the automatic load dialog.

Parameters
loadDataPointer to a oslSaveLoad structure where data will be loaded.

◆ oslInitDeleteDialog()

void oslInitDeleteDialog ( struct oslSaveLoad * deleteData)

Initializes the delete dialog.

Parameters
deleteDataPointer to a oslSaveLoad structure where data will be deleted.

◆ oslGetLoadSaveStatus()

int oslGetLoadSaveStatus ( void )

Returns the current dialog status.

Returns
The status of the current save/load dialog.

◆ oslGetSaveLoadType()

int oslGetSaveLoadType ( void )

Returns the current dialog type.

Returns
The type of the current save/load dialog.

◆ oslSaveLoadGetResult()

int oslSaveLoadGetResult ( void )

Gets the dialog's result.

Returns
The result of the save/load operation.