RECORDER: Implement Events Recorder

This commit is contained in:
Eugene Sandulenko 2013-05-17 00:18:09 +03:00
parent 4a62d6c25a
commit f59512c47e
98 changed files with 5350 additions and 1918 deletions

View file

@ -29,7 +29,7 @@
#include "common/system.h"
#include "common/textconsole.h"
#include "common/translation.h"
#include "gui/EventRecorder.h"
#include "engines/advancedDetector.h"
#include "engines/obsolete.h"
@ -301,6 +301,7 @@ Common::Error AdvancedMetaEngine::createInstance(OSystem *syst, Engine **engine)
return Common::kUserCanceled;
debug(2, "Running %s", gameDescriptor.description().c_str());
initSubSystems(agdDesc);
if (!createInstance(syst, engine, agdDesc))
return Common::kNoGameDataFoundError;
else
@ -606,3 +607,9 @@ AdvancedMetaEngine::AdvancedMetaEngine(const void *descs, uint descItemSize, con
_maxScanDepth = 1;
_directoryGlobs = NULL;
}
void AdvancedMetaEngine::initSubSystems(const ADGameDescription *gameDesc) const {
if (gameDesc) {
g_eventRec.processGameDescription(gameDesc);
}
}