Save and Load

Data Structures

struct  oslSaveLoad
 

Macros

#define OSL_SAVELOAD_CANCEL   1
 
#define OSL_SAVELOAD_OK   0
 
#define OSL_DIALOG_SAVE   1
 
#define OSL_DIALOG_LOAD   2
 
#define OSL_DIALOG_DELETE   3
 

Functions

void oslInitSaveDialog (struct oslSaveLoad *saveData)
 
void oslInitMultiSaveDialog (struct oslSaveLoad *saveData)
 
void oslInitSingleSaveDialog (struct oslSaveLoad *saveData)
 
void oslInitAutoSaveDialog (struct oslSaveLoad *saveData)
 
void oslInitLoadDialog (struct oslSaveLoad *loadData)
 
void oslInitMultiLoadDialog (struct oslSaveLoad *loadData)
 
void oslInitSingleLoadDialog (struct oslSaveLoad *loadData)
 
void oslInitAutoLoadDialog (struct oslSaveLoad *loadData)
 
void oslDrawSaveLoad ()
 
int oslGetLoadSaveStatus ()
 
int oslGetSaveLoadType ()
 
int oslSaveLoadGetResult ()
 
void oslEndSaveLoadDialog ()
 

Detailed Description

Functions to use the save and load screen

Macro Definition Documentation

#define OSL_SAVELOAD_CANCEL   1

Save and Load cancel

#define OSL_SAVELOAD_OK   0

Save and Load OK

#define OSL_DIALOG_SAVE   1

Save dialog

#define OSL_DIALOG_LOAD   2

Load dialog

#define OSL_DIALOG_DELETE   3

Delete dialog

Function Documentation

void oslInitSaveDialog ( struct oslSaveLoad saveData)

Initializes the save dialog

Parameters
*saveDataPointer to a oslSaveLoad structure containing data to be saved
void oslInitMultiSaveDialog ( struct oslSaveLoad saveData)

Initializes the multilist save dialog

Parameters
*saveDataPointer to a oslSaveLoad structure containing data to be saved
void oslInitSingleSaveDialog ( struct oslSaveLoad saveData)

Initializes the single save dialog

Parameters
*saveDataPointer to a oslSaveLoad structure containing data to be saved
void oslInitAutoSaveDialog ( struct oslSaveLoad saveData)

Initializes the automatic save dialog

Parameters
*saveDataPointer to a oslSaveLoad structure containing data to be saved
void oslInitLoadDialog ( struct oslSaveLoad loadData)

Initializes the load dialog

Parameters
*loadDataPointer to a oslSaveLoad structure where data will be loaded
void oslInitMultiLoadDialog ( struct oslSaveLoad loadData)

Initializes the multilist load dialog

Parameters
*loadDataPointer to a oslSaveLoad structure where data will be loaded
void oslInitSingleLoadDialog ( struct oslSaveLoad loadData)

Initializes the single load dialog

Parameters
*loadDataPointer to a oslSaveLoad structure where data will be loaded
void oslInitAutoLoadDialog ( struct oslSaveLoad loadData)

Initializes the automatic load dialog

Parameters
*loadDataPointer to a oslSaveLoad structure where data will be loaded
void oslDrawSaveLoad ( )

Draws the save/load dialog

int oslGetLoadSaveStatus ( )

Returns the current dialog status

int oslGetSaveLoadType ( )

Returns the current dialog type

int oslSaveLoadGetResult ( )

Gets the dialog's result

void oslEndSaveLoadDialog ( )

Ends the current dialog