mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
DREAMWEB: Remove unused 'openFile', merge duplicated 'getFilename'
This commit is contained in:
parent
3b5794890f
commit
887b5c8cdd
@ -377,6 +377,7 @@ generator = cpp(context, "DreamGen", blacklist = [
|
||||
'obtoinv',
|
||||
'oldtonames',
|
||||
'onedigit',
|
||||
'openfile',
|
||||
'openforsave',
|
||||
'othersmoker',
|
||||
'out22c',
|
||||
|
@ -821,7 +821,6 @@ public:
|
||||
void useCardReader2();
|
||||
void useCardReader3();
|
||||
void useHandle();
|
||||
void openFile();
|
||||
void showPuzText();
|
||||
void incRyanPage();
|
||||
void edenInBath();
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -463,5 +463,6 @@
|
||||
void bibleQuote();
|
||||
void realCredits();
|
||||
void intro();
|
||||
Common::String getFilename(Context &context);
|
||||
|
||||
#endif
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user