coastline 0.0.4
Loading...
Searching...
No Matches
SaveFileList Class Reference

The names of the saved files a screen of the front end lists. More...

#include <frontend.h>

Public Member Functions

 SaveFileList ()
 Clear every name.
virtual ~SaveFileList ()
 Do nothing.
virtual int ScanSaveFiles (const char *pszPattern)
 Read descriptions from the last 128 bytes of matching saved files.
const char * GetName (int index) const
void SetName (int index, const char *text)
 Copy a terminated name into a slot without checking the destination capacity.
void SetFormattedName (int index, const char *format, int value)
 Format one integer into a slot without checking the destination capacity.

Detailed Description

The names of the saved files a screen of the front end lists.

Constructor & Destructor Documentation

◆ SaveFileList()

SaveFileList::SaveFileList ( )

Clear every name.

Ghidra address:
BRD3D: 0x1005cb90
Ghidra address:
BRGlide: 0x100559b0

◆ ~SaveFileList()

virtual SaveFileList::~SaveFileList ( )
virtual

Do nothing.

Ghidra address:
BRD3D: 0x1005cc10
Ghidra address:
BRGlide: 0x10055a30

Member Function Documentation

◆ ScanSaveFiles()

virtual int SaveFileList::ScanSaveFiles ( const char * pszPattern)
virtual

Read descriptions from the last 128 bytes of matching saved files.

Parameters
pszPatternThe file search pattern.
Returns
Zero when the first search fails, otherwise one.
Ghidra address:
BRD3D: 0x1005cf20
Ghidra address:
BRGlide: 0x10055d40

◆ GetName()

const char * SaveFileList::GetName ( int index) const
inline
Parameters
indexThe slot index, 0..99, without bounds checking.
Returns
The borrowed terminated name, valid until the slot changes or the list is destroyed.

◆ SetName()

void SaveFileList::SetName ( int index,
const char * text )
inline

Copy a terminated name into a slot without checking the destination capacity.

Parameters
indexThe slot index, 0..99.
textA non-null terminated string of at most SAVE_FILE_NAME_SIZE - 1 bytes.

◆ SetFormattedName()

void SaveFileList::SetFormattedName ( int index,
const char * format,
int value )
inline

Format one integer into a slot without checking the destination capacity.

Parameters
indexThe slot index, 0..99.
formatA non-null terminated printf format accepting one int; the result including its terminator must fit SAVE_FILE_NAME_SIZE bytes.
valueThe integer supplied to the format.

The documentation for this class was generated from the following file: