diff options
| -rw-r--r-- | base/engine.cpp | 4 | ||||
| -rw-r--r-- | base/engine.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/base/engine.cpp b/base/engine.cpp index 5da4b9ac43..380c20e1dd 100644 --- a/base/engine.cpp +++ b/base/engine.cpp @@ -148,6 +148,10 @@ const char *Engine::getGameDataPath() const { return _gameDataPath.c_str(); } +void Engine::errorString(const char *buf1, char *buf2) { + strcpy(buf2, buf1); +} + void NORETURN CDECL error(const char *s, ...) { char buf_input[STRINGBUFLEN]; char buf_output[STRINGBUFLEN]; diff --git a/base/engine.h b/base/engine.h index 8b97993966..6517d4bba1 100644 --- a/base/engine.h +++ b/base/engine.h @@ -70,7 +70,7 @@ public: virtual const char *getGameDataPath() const; /** Specific for each engine: prepare error string. */ - virtual void errorString(const char *buf_input, char *buf_output) = 0; + virtual void errorString(const char *buf_input, char *buf_output); void initCommonGFX(GameDetector &detector); |
