aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrichiesams2013-07-18 14:40:02 -0500
committerrichiesams2013-08-04 13:32:25 -0500
commit8f32592ab9556c57d459be116863d3bb7ac88c72 (patch)
tree5e9dbaf028af6a9220d82c2f47127865e2ac5c36
parent32f88486058c0553ae2c0cd1808ef06fcd09b143 (diff)
downloadscummvm-rg350-8f32592ab9556c57d459be116863d3bb7ac88c72.tar.gz
scummvm-rg350-8f32592ab9556c57d459be116863d3bb7ac88c72.tar.bz2
scummvm-rg350-8f32592ab9556c57d459be116863d3bb7ac88c72.zip
ZVISION: Create console command to use the raw2wav function
-rw-r--r--engines/zvision/console.cpp11
-rw-r--r--engines/zvision/console.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/zvision/console.cpp b/engines/zvision/console.cpp
index a18da8605a..ed244c1f58 100644
--- a/engines/zvision/console.cpp
+++ b/engines/zvision/console.cpp
@@ -31,6 +31,7 @@
#include "zvision/zvision.h"
#include "zvision/zork_avi_decoder.h"
#include "zvision/zork_raw.h"
+#include "zvision/utility.h"
namespace ZVision {
@@ -38,6 +39,7 @@ Console::Console(ZVision *engine) : GUI::Debugger(), _engine(engine) {
DCmd_Register("loadimage", WRAP_METHOD(Console, cmdLoadImage));
DCmd_Register("loadvideo", WRAP_METHOD(Console, cmdLoadVideo));
DCmd_Register("loadsound", WRAP_METHOD(Console, cmdLoadSound));
+ DCmd_Register("raw2wav", WRAP_METHOD(Console, cmdRawToWav));
}
bool Console::cmdLoadImage(int argc, const char **argv) {
@@ -82,4 +84,13 @@ bool Console::cmdLoadSound(int argc, const char **argv) {
return true;
}
+bool Console::cmdRawToWav(int argc, const char **argv) {
+ if (argc != 3) {
+ DebugPrintf("Use raw2wav <rawFilePath> <wavFileName> to dump a .RAW file to .WAV\n");
+ return true;
+ }
+
+ convertRawToWav(argv[1], _engine, argv[2]);
+}
+
} // End of namespace ZVision
diff --git a/engines/zvision/console.h b/engines/zvision/console.h
index 354051d2b0..cf22c42e35 100644
--- a/engines/zvision/console.h
+++ b/engines/zvision/console.h
@@ -40,6 +40,7 @@ namespace ZVision {
bool cmdLoadImage(int argc, const char **argv);
bool cmdLoadVideo(int argc, const char **argv);
bool cmdLoadSound(int argc, const char **argv);
+ bool cmdRawToWav(int argc, const char **argv);
};
} // End of namespace ZVision