mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 19:16:21 +00:00
DREAMWEB: Avoid including advancedDetector.h from dreamweb.h
This commit is contained in:
parent
4202d45fce
commit
37216ab381
@ -25,6 +25,8 @@
|
||||
#include "common/algorithm.h"
|
||||
#include "common/system.h"
|
||||
|
||||
#include "engines/advancedDetector.h"
|
||||
|
||||
#include "graphics/thumbnail.h"
|
||||
|
||||
#include "dreamweb/dreamweb.h"
|
||||
@ -215,4 +217,12 @@ bool DreamWebEngine::canSaveGameStateCurrently() {
|
||||
return false;
|
||||
}
|
||||
|
||||
Common::Language DreamWebEngine::getLanguage() const {
|
||||
return _gameDescription->desc.language;
|
||||
}
|
||||
|
||||
bool DreamWebEngine::isCD() {
|
||||
return _gameDescription->desc.flags & ADGF_CD;
|
||||
}
|
||||
|
||||
} // End of namespace DreamWeb
|
||||
|
@ -25,6 +25,10 @@
|
||||
|
||||
namespace DreamWeb {
|
||||
|
||||
struct DreamWebGameDescription {
|
||||
ADGameDescription desc;
|
||||
};
|
||||
|
||||
static const DreamWebGameDescription gameDescriptions[] = {
|
||||
// International floppy release
|
||||
{
|
||||
|
@ -30,6 +30,8 @@
|
||||
#include "common/timer.h"
|
||||
#include "common/util.h"
|
||||
|
||||
#include "engines/advancedDetector.h"
|
||||
|
||||
#include "graphics/palette.h"
|
||||
#include "graphics/surface.h"
|
||||
|
||||
@ -60,8 +62,6 @@ DreamWebEngine::DreamWebEngine(OSystem *syst, const DreamWebGameDescription *gam
|
||||
_channel0 = 0;
|
||||
_channel1 = 0;
|
||||
|
||||
_language = gameDesc->desc.language;
|
||||
|
||||
_openChangeSize = kInventx+(4*kItempicsize);
|
||||
_quitRequested = false;
|
||||
|
||||
@ -477,10 +477,9 @@ uint8 DreamWebEngine::modifyChar(uint8 c) const {
|
||||
if (c < 128)
|
||||
return c;
|
||||
|
||||
switch(_language) {
|
||||
switch(getLanguage()) {
|
||||
case Common::DE_DEU:
|
||||
switch(c)
|
||||
{
|
||||
switch(c) {
|
||||
case 129:
|
||||
return 'Z' + 3;
|
||||
case 132:
|
||||
@ -528,11 +527,8 @@ uint8 DreamWebEngine::modifyChar(uint8 c) const {
|
||||
}
|
||||
}
|
||||
|
||||
bool DreamWebEngine::isCD() {
|
||||
return _gameDescription->desc.flags & ADGF_CD;
|
||||
}
|
||||
|
||||
bool DreamWebEngine::hasSpeech() {
|
||||
return isCD() && _hasSpeech;
|
||||
}
|
||||
|
||||
} // End of namespace DreamWeb
|
||||
|
@ -34,7 +34,6 @@
|
||||
#include "audio/audiostream.h"
|
||||
#include "audio/mixer.h"
|
||||
|
||||
#include "engines/advancedDetector.h"
|
||||
#include "engines/engine.h"
|
||||
|
||||
#include "dreamweb/console.h"
|
||||
@ -98,9 +97,7 @@ enum {
|
||||
kDebugSaveLoad = (1 << 1)
|
||||
};
|
||||
|
||||
struct DreamWebGameDescription {
|
||||
ADGameDescription desc;
|
||||
};
|
||||
struct DreamWebGameDescription;
|
||||
|
||||
class DreamWebEngine : public Engine {
|
||||
private:
|
||||
@ -149,7 +146,7 @@ public:
|
||||
|
||||
void enableSavingOrLoading(bool enable = true) { _enableSavingOrLoading = enable; }
|
||||
|
||||
Common::Language getLanguage() const { return _language; }
|
||||
Common::Language getLanguage() const;
|
||||
uint8 modifyChar(uint8 c) const;
|
||||
|
||||
void stopSound(uint8 channel);
|
||||
@ -167,7 +164,6 @@ private:
|
||||
bool _turbo;
|
||||
uint _oldMouseState;
|
||||
bool _enableSavingOrLoading;
|
||||
Common::Language _language;
|
||||
|
||||
struct Sample {
|
||||
uint offset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user