aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/hdb.cpp
diff options
context:
space:
mode:
authorNipun Garg2019-07-26 06:38:04 +0530
committerEugene Sandulenko2019-09-03 17:17:29 +0200
commit2bb60c69cd2a0bde98e3039e5b788fc2bced07b2 (patch)
treeef5a049ff7feefdcc875ee24efd60c6d1384e824 /engines/hdb/hdb.cpp
parent3aa373ab2baaeb96d0113bf3d4ff5923f645f8d1 (diff)
downloadscummvm-rg350-2bb60c69cd2a0bde98e3039e5b788fc2bced07b2.tar.gz
scummvm-rg350-2bb60c69cd2a0bde98e3039e5b788fc2bced07b2.tar.bz2
scummvm-rg350-2bb60c69cd2a0bde98e3039e5b788fc2bced07b2.zip
HDB: Add Music/Song data and functions
Diffstat (limited to 'engines/hdb/hdb.cpp')
-rw-r--r--engines/hdb/hdb.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 11c10cc7be..e58cae1ca2 100644
--- a/engines/hdb/hdb.cpp
+++ b/engines/hdb/hdb.cpp
@@ -32,8 +32,8 @@
#include "hdb/input.h"
#include "hdb/lua-script.h"
#include "hdb/map.h"
-#include "hdb/sound.h"
#include "hdb/menu.h"
+#include "hdb/sound.h"
#include "hdb/mpc.h"
#include "hdb/window.h"
@@ -152,6 +152,11 @@ bool HDBGame::init() {
return true;
}
+void HDBGame::initializePath(const Common::FSNode &gamePath) {
+ Engine::initializePath(gamePath);
+ SearchMan.addDirectory("music", gamePath.getChild("music"));
+}
+
void HDBGame::changeGameState() {
switch (_gameState) {
@@ -856,8 +861,6 @@ Common::Error HDBGame::run() {
// Initializes Graphics
initGraphics(kScreenWidth, kScreenHeight, &_format);
- _sound->test();
-
start();
#if 0