[Scummvm-git-logs] scummvm master -> d48596b7ca3527e6a9c94bde17e70a4ffd7b4e5e

neuromancer noreply at scummvm.org
Sat Apr 23 12:49:31 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d48596b7ca HYPNO: fix for incorrect sound decoding and added more sounds into the wet level menu


Commit: d48596b7ca3527e6a9c94bde17e70a4ffd7b4e5e
    https://github.com/scummvm/scummvm/commit/d48596b7ca3527e6a9c94bde17e70a4ffd7b4e5e
Author: neuromancer (gustavo.grieco at gmail.com)
Date: 2022-04-23T14:49:36+02:00

Commit Message:
HYPNO: fix for incorrect sound decoding and added more sounds into the wet level menu

Changed paths:
    engines/hypno/libfile.cpp
    engines/hypno/wet/hard.cpp


diff --git a/engines/hypno/libfile.cpp b/engines/hypno/libfile.cpp
index 3f3489914b7..1aa7778b6e3 100644
--- a/engines/hypno/libfile.cpp
+++ b/engines/hypno/libfile.cpp
@@ -69,7 +69,9 @@ bool LibFile::open(const Common::String &prefix, const Common::String &filename,
 
 			for (uint32 i = 0; i < size; i++) {
 				b = libfile.readByte();
-				if (encrypted && b != '\n')
+				if (b == '\n' && f.name.hasSuffix(".raw"))
+					b = b ^ 0xfe;
+				else if (encrypted && b != '\n')
 					b = b ^ 0xfe;
 				f.data.push_back(b);
 				//debugN("%c", b);
diff --git a/engines/hypno/wet/hard.cpp b/engines/hypno/wet/hard.cpp
index 8bb6666245c..4173fdaff90 100644
--- a/engines/hypno/wet/hard.cpp
+++ b/engines/hypno/wet/hard.cpp
@@ -82,6 +82,7 @@ void WetEngine::runLevelMenu(Code *code) {
 	loadPalette((byte *) &lime, 192+currentLevel, 1);
 	drawImage(*menu, 0, 0, false);
 	bool cont = true;
+	playSound("sound/bub01.raw", 0, 22050);
 	while (!shouldQuit() && cont) {
 		while (g_system->getEventManager()->pollEvent(event)) {
 			// Events
@@ -93,12 +94,13 @@ void WetEngine::runLevelMenu(Code *code) {
 
 			case Common::EVENT_KEYDOWN:
 				if (event.kbd.keycode == Common::KEYCODE_DOWN && currentLevel < _lastLevel) {
-					playSound("sound/extra.raw", 1, 11025);
+					playSound("sound/m_hilite.raw", 1, 11025);
 					currentLevel++;
 				} else if (event.kbd.keycode == Common::KEYCODE_UP && currentLevel > 0) {
-					playSound("sound/extra.raw", 1, 11025);
+					playSound("sound/m_hilite.raw", 1, 11025);
 					currentLevel--;
 				} else if (event.kbd.keycode == Common::KEYCODE_RETURN ) {
+					playSound("sound/m_choice.raw", 1, 11025);
 					_nextLevel = Common::String::format("c%d", _ids[currentLevel]);
 					cont = false;
 				}




More information about the Scummvm-git-logs mailing list