[Scummvm-git-logs] scummvm master -> 5faba666ba742bb693a96c2c2e101adf5430c5f1
Strangerke
noreply at scummvm.org
Sun Jan 26 10:01:50 UTC 2025
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:
5faba666ba GOT: Add some (disabled) code to dump music files
Commit: 5faba666ba742bb693a96c2c2e101adf5430c5f1
https://github.com/scummvm/scummvm/commit/5faba666ba742bb693a96c2c2e101adf5430c5f1
Author: Strangerke (arnaud.boutonne at gmail.com)
Date: 2025-01-26T11:01:21+01:00
Commit Message:
GOT: Add some (disabled) code to dump music files
Changed paths:
engines/got/sound.cpp
diff --git a/engines/got/sound.cpp b/engines/got/sound.cpp
index 74c1e1aa23f..33ae9cc8aa5 100644
--- a/engines/got/sound.cpp
+++ b/engines/got/sound.cpp
@@ -139,6 +139,17 @@ void Sound::musicPlay(const char *name, bool override) {
#else
warning("TODO: play_music %s", name);
+#if 0
+ Common::DumpFile *outFile = new Common::DumpFile();
+ const Common::String outName = Common::String::format("%s.dump", name);
+ outFile->open(Common::Path(outName));
+ byte *buffer = new byte[file.size()];
+ file.read(buffer, file.size());
+ outFile->write(buffer, file.size());
+ outFile->finalize();
+ outFile->close();
+#endif
+
// The following is a dump of the music data in the hopes
// it will help someone write a decoder for ScummVM based on it.
// After an unknown header that doesn't seem to be used, the
More information about the Scummvm-git-logs
mailing list