aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorD G Turner2011-12-05 21:38:31 +0000
committerD G Turner2011-12-05 21:38:31 +0000
commit887b5c8cdde0c32d0a7b5ed24d82e52f5dc04d92 (patch)
tree7e3abcbeee960e2e079c06bc018ce3a98539ab42 /engines
parent3b5794890fb36d0d93e8eff7d1a30c9bfd611618 (diff)
downloadscummvm-rg350-887b5c8cdde0c32d0a7b5ed24d82e52f5dc04d92.tar.gz
scummvm-rg350-887b5c8cdde0c32d0a7b5ed24d82e52f5dc04d92.tar.bz2
scummvm-rg350-887b5c8cdde0c32d0a7b5ed24d82e52f5dc04d92.zip
DREAMWEB: Remove unused 'openFile', merge duplicated 'getFilename'
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/dreamgen.h1
-rw-r--r--engines/dreamweb/stubs.cpp10
-rw-r--r--engines/dreamweb/stubs.h1
-rw-r--r--engines/dreamweb/vgagrafx.cpp10
4 files changed, 3 insertions, 19 deletions
diff --git a/engines/dreamweb/dreamgen.h b/engines/dreamweb/dreamgen.h
index 39af176d38..dd3f1f9abf 100644
--- a/engines/dreamweb/dreamgen.h
+++ b/engines/dreamweb/dreamgen.h
@@ -821,7 +821,6 @@ public:
void useCardReader2();
void useCardReader3();
void useHandle();
- void openFile();
void showPuzText();
void incRyanPage();
void edenInBath();
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index ab28503605..5fb861c360 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -735,7 +735,7 @@ void DreamGenContext::switchRyanOff() {
data.byte(kRyanon) = 1;
}
-static Common::String getFilename(Context &context) {
+Common::String DreamGenContext::getFilename(Context &context) {
const char *name = (const char *)context.cs.ptr(context.dx, 0);
return Common::String(name);
}
@@ -865,14 +865,6 @@ void DreamGenContext::openFileFromC() {
openFileNoCheck();
}
-void DreamGenContext::openFile() {
- Common::String name = getFilename(*this);
- debug(1, "opening file: %s", name.c_str());
- engine->openFile(name);
- cs.word(kHandle) = 1; //only one handle
- flags._c = false;
-}
-
void DreamGenContext::createFile() {
::error("createfile");
}
diff --git a/engines/dreamweb/stubs.h b/engines/dreamweb/stubs.h
index b9f2fed85d..72a5048003 100644
--- a/engines/dreamweb/stubs.h
+++ b/engines/dreamweb/stubs.h
@@ -463,5 +463,6 @@
void bibleQuote();
void realCredits();
void intro();
+ Common::String getFilename(Context &context);
#endif
diff --git a/engines/dreamweb/vgagrafx.cpp b/engines/dreamweb/vgagrafx.cpp
index 440688dce0..4848e148e8 100644
--- a/engines/dreamweb/vgagrafx.cpp
+++ b/engines/dreamweb/vgagrafx.cpp
@@ -21,6 +21,7 @@
*/
#include "dreamweb/dreamweb.h"
+#include "dreamweb/stubs.h"
#include "engines/util.h"
#include "graphics/surface.h"
@@ -210,15 +211,6 @@ void DreamGenContext::setMode() {
initGraphics(320, 200, false);
}
-static Common::String getFilename(Context &context) {
- uint16 name_ptr = context.dx;
- Common::String name;
- uint8 c;
- while((c = context.cs.byte(name_ptr++)) != 0)
- name += (char)c;
- return name;
-}
-
void DreamGenContext::showPCX(const Common::String &name) {
Common::File pcxFile;