aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/voyeur.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2013-05-20 12:45:54 +1000
committerPaul Gilbert2013-05-20 12:45:54 +1000
commit0c5561cc07ff6257b832feeca644bcd136fe2a0f (patch)
treee9e9d2b3863c0d3cba153289a14f65e4790a1c36 /engines/voyeur/voyeur.cpp
parentb72298fa6f7da9eda854b78a1c69c8365ffdf30c (diff)
downloadscummvm-rg350-0c5561cc07ff6257b832feeca644bcd136fe2a0f.tar.gz
scummvm-rg350-0c5561cc07ff6257b832feeca644bcd136fe2a0f.tar.bz2
scummvm-rg350-0c5561cc07ff6257b832feeca644bcd136fe2a0f.zip
VOYEUR: In progress work on bolt file manager
Diffstat (limited to 'engines/voyeur/voyeur.cpp')
-rw-r--r--engines/voyeur/voyeur.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/engines/voyeur/voyeur.cpp b/engines/voyeur/voyeur.cpp
index 580bacbd6f..dc3fcb221a 100644
--- a/engines/voyeur/voyeur.cpp
+++ b/engines/voyeur/voyeur.cpp
@@ -32,9 +32,11 @@ VoyeurEngine *g_vm;
VoyeurEngine::VoyeurEngine(OSystem *syst, const VoyeurGameDescription *gameDesc) : Engine(syst),
_gameDescription(gameDesc), _randomSource("Voyeur") {
DebugMan.addDebugChannel(kDebugPath, "Path", "Pathfinding debug level");
+ _bVoyBoltFile = NULL;
}
VoyeurEngine::~VoyeurEngine() {
+ delete _bVoyBoltFile;
}
Common::String VoyeurEngine::generateSaveName(int slot) {
@@ -73,17 +75,29 @@ Common::Error VoyeurEngine::saveGameState(int slot, const Common::String &desc)
Common::Error VoyeurEngine::run() {
ESP_Init();
+ globalInitBolt();
+ _eventManager.resetMouse();
+
+ //doHeadTitle();
+
return Common::kNoError;
}
+
int VoyeurEngine::getRandomNumber(int maxNumber) {
return _randomSource.getRandomNumber(maxNumber);
}
-void VoyeurEngine::ESP_Init() {
+void VoyeurEngine::initialiseManagers() {
_eventManager.setVm(this);
+}
+
+void VoyeurEngine::ESP_Init() {
+}
+
+void VoyeurEngine::globalInitBolt() {
+ _filesManager.openBOLTLib("buoy.blt", _bVoyBoltFile);
- _eventManager.resetMouse();
}