diff options
author | Le Philousophe | 2019-03-13 08:27:02 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-06-01 22:43:48 +0200 |
commit | c83f86a245dae1ae13c2cc170aa4374cae01230b (patch) | |
tree | f46cfc579ca374f534579f537b96d9c2f5396035 /engines/cryomni3d/versailles/engine.h | |
parent | 3a12d53ffc72fd99cdfbb9627bb699236d32f235 (diff) | |
download | scummvm-rg350-c83f86a245dae1ae13c2cc170aa4374cae01230b.tar.gz scummvm-rg350-c83f86a245dae1ae13c2cc170aa4374cae01230b.tar.bz2 scummvm-rg350-c83f86a245dae1ae13c2cc170aa4374cae01230b.zip |
CRYOMNI3D: Fix file names for Macintosh version
Add a function to unify extensions handling.
That lets us substitute dashes by underscore on PC versions of
Versailles and fix dashes for Macintosh.
Diffstat (limited to 'engines/cryomni3d/versailles/engine.h')
-rw-r--r-- | engines/cryomni3d/versailles/engine.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/cryomni3d/versailles/engine.h b/engines/cryomni3d/versailles/engine.h index 74d8c9640c..cb677cd94c 100644 --- a/engines/cryomni3d/versailles/engine.h +++ b/engines/cryomni3d/versailles/engine.h @@ -218,6 +218,13 @@ public: CryOmni3DEngine_Versailles(OSystem *syst, const CryOmni3DGameDescription *gamedesc); virtual ~CryOmni3DEngine_Versailles(); + Common::String prepareFileName(const Common::String &baseName, const char *extension) const { + const char *const extensions[] = { extension, nullptr }; + return prepareFileName(baseName, extensions); + } + virtual Common::String prepareFileName(const Common::String &baseName, + const char *const *extensions) const override; + void setupPalette(const byte *colors, uint start, uint num) override { setupPalette(colors, start, num, true); } void makeTranslucent(Graphics::Surface &dst, const Graphics::Surface &src) const override; |