Skip to content

Commit

Permalink
WAGE: Sync with mainline
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed Dec 27, 2015
1 parent e42540a commit 076a667
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion engines/wage/detection.cpp
Expand Up @@ -51,7 +51,7 @@ static const ADGameDescription gameDescriptions[] = {
"v1.8",
AD_ENTRY1s("Another Fine Mess 1.8", "8e5aa915f3253efb2aab52435647b25e", 1456000),
Common::EN_ANY,
Common::kPlatformPC,
Common::kPlatformMacintosh,
ADGF_NO_FLAGS,
GUIO0()
},
Expand Down
24 changes: 12 additions & 12 deletions engines/wage/wage.cpp
Expand Up @@ -46,45 +46,45 @@
*/

#include "common/scummsys.h"

#include "common/config-manager.h"
#include "common/debug-channels.h"
#include "common/error.h"
#include "common/EventRecorder.h"
#include "common/file.h"
#include "common/fs.h"

#include "engines/util.h"
#include "gui/EventRecorder.h"

#include "wage/wage.h"
#include "wage/entities.h"
#include "wage/world.h"

namespace Wage {

WageEngine::WageEngine(OSystem *syst, const ADGameDescription *desc) : Engine(syst), _gameDescription(desc) {
_rnd = new Common::RandomSource("wage");

_aim = -1;

debug("WageEngine::WageEngine()");
}

WageEngine::~WageEngine() {
debug("WageEngine::~WageEngine()");

DebugMan.clearAllDebugChannels();
delete _rnd;
}

Common::Error WageEngine::run() {
initGraphics(320, 200, false);

// Create debugger console. It requires GFX to be initialized
_console = new Console(this);

debug("WageEngine::init");

// Your main event loop should be (invoked from) here.
_resManager = new Common::MacResManager();
_resManager->open(getGameFile());
Expand All @@ -93,7 +93,7 @@ Common::Error WageEngine::run() {

if (!_world->loadWorld(_resManager))
return Common::kNoGameDataFoundError;

return Common::kNoError;
}

Expand Down

0 comments on commit 076a667

Please sign in to comment.