diff options
author | Max Horn | 2006-02-12 01:23:58 +0000 |
---|---|---|
committer | Max Horn | 2006-02-12 01:23:58 +0000 |
commit | 24a5ba86a7a4ec4992cb81d6faca14198efc6d48 (patch) | |
tree | 72590bda70ab50dfd156721f35d3cdbd399b2b05 | |
parent | c595b65aba212580753f71c1ee3a7cd0bfc1d81d (diff) | |
download | scummvm-rg350-24a5ba86a7a4ec4992cb81d6faca14198efc6d48.tar.gz scummvm-rg350-24a5ba86a7a4ec4992cb81d6faca14198efc6d48.tar.bz2 scummvm-rg350-24a5ba86a7a4ec4992cb81d6faca14198efc6d48.zip |
No need to force engines to implement errorString()
svn-id: r20589
-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); |