resonance 1.0.1
Loading...
Searching...
No Matches
formatstring.h File Reference

Go to the source code of this file.

Namespaces

namespace  Rnd
 The rendering engine.

Functions

const char * Rnd::MakeString (const char *pszFormat,...)
 Format text into one shared buffer and return it.
const char * GetDirectoryFromPath (const char *pszPath)
 Copy a path into one shared buffer and cut it at its last separator.

Function Documentation

◆ GetDirectoryFromPath()

const char * GetDirectoryFromPath ( const char * pszPath)

Copy a path into one shared buffer and cut it at its last separator.

The last slash ends the directory, or the last backslash when the path has no slash. A path with neither yields an empty string. The buffer is the 0x100-byte static array at 0x008de290, and the result is valid only until the next call. The shipped program does not call it.

Parameters
pszPathThe path.
Returns
The shared buffer, holding the directory.
Ghidra address:
NTSC-U/C: 0x0054f6f0
Ghidra address:
PAL: 0x0058fd30