mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 08:25:35 +00:00
cleanup / added Engine::getGameDataPath()
svn-id: r11420
This commit is contained in:
parent
d98479ee5d
commit
493d64d91b
@ -74,6 +74,10 @@ const char *Engine::getSavePath() const {
|
||||
#endif
|
||||
}
|
||||
|
||||
const char *Engine::getGameDataPath() const {
|
||||
return _gameDataPath.c_str();
|
||||
}
|
||||
|
||||
void NORETURN CDECL error(const char *s, ...) {
|
||||
#ifdef __PALM_OS__
|
||||
char buf_input[256]; // 1024 is too big overflow the stack
|
||||
|
@ -45,13 +45,16 @@ public:
|
||||
Engine(OSystem *syst);
|
||||
virtual ~Engine();
|
||||
|
||||
// Invoke the main engine loop using this method
|
||||
/** Start the main engine loop. */
|
||||
virtual void go() = 0;
|
||||
|
||||
// Get the save game dir path
|
||||
const char *getSavePath() const;
|
||||
/** Get the path to the save game directory. */
|
||||
virtual const char *getSavePath() const;
|
||||
|
||||
// Specific for each engine preparare of erroe string
|
||||
/** Get the path to the game data directory. */
|
||||
virtual const char *getGameDataPath() const;
|
||||
|
||||
/** Specific for each engine: prepare error string. */
|
||||
virtual void errorString(const char *buf_input, char *buf_output) = 0;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user