aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dm.cpp
diff options
context:
space:
mode:
authorBendegúz Nagy2016-08-15 11:56:21 +0200
committerBendegúz Nagy2016-08-26 23:02:22 +0200
commit3fffb08a408b042d185fd615e2ea826e53b842fd (patch)
treecf18cd7d3fca14048ac139e33244e55c10c7f20c /engines/dm/dm.cpp
parentc7b353385d08b3c848a59967e769a0eeec837d4e (diff)
downloadscummvm-rg350-3fffb08a408b042d185fd615e2ea826e53b842fd.tar.gz
scummvm-rg350-3fffb08a408b042d185fd615e2ea826e53b842fd.tar.bz2
scummvm-rg350-3fffb08a408b042d185fd615e2ea826e53b842fd.zip
DM: Add missing localization warnings and query function for language
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r--engines/dm/dm.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index 66475dbea4..13c8c63d21 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -56,6 +56,7 @@
#include "projexpl.h"
#include "dialog.h"
#include <graphics/cursorman.h>
+#include <advancedDetector.h>
namespace DM {
void warning(bool repeat, const char* s, ...) {
@@ -140,7 +141,7 @@ int16 M38_distance(int16 mapx1, int16 mapy1, int16 mapx2, int16 mapy2) {
return ABS(mapx1 - mapx2) + ABS(mapy1 - mapy2);
}
-DMEngine::DMEngine(OSystem *syst) : Engine(syst), _console(nullptr) {
+DMEngine::DMEngine(OSystem *syst, const ADGameDescription *desc) : Engine(syst), _console(nullptr), _gameVersion(desc) {
// Do not load data files
// Do not initialize graphics here
// Do not initialize audio devices here
@@ -646,6 +647,7 @@ T0444017:
_displayMan->_g578_useByteBoxCoordinates = false;
_displayMan->D24_fillScreenBox(restartOuterBox, k12_ColorDarkestGray);
_displayMan->D24_fillScreenBox(restartInnerBox, k0_ColorBlack);
+ // TODO: localization
_textMan->f53_printToLogicalScreen(110, 154, k4_ColorCyan, k0_ColorBlack, "RESTART THIS GAME");
curPalette[1] = D03_RGB_PINK;
curPalette[4] = D09_RGB_WHITE;
@@ -932,4 +934,5 @@ void DMEngine::f445_STARTEND_fuseSequenceUpdate() {
The ending animation when Lord Chaos is fused plays too quickly because the execution speed is not limited */
}
+Common::Language DMEngine::getGameLanguage() { return _gameVersion->language; }
} // End of namespace DM