diff options
author | Paul Gilbert | 2019-05-11 17:11:55 +1000 |
---|---|---|
committer | Paul Gilbert | 2019-05-12 10:19:47 +1000 |
commit | 98f6315366eafc0568d46ee4d9cba8d0d6495950 (patch) | |
tree | 2aa451001287dac6e41d9f6ed2b9258cf84ede32 /engines/glk | |
parent | 4113183f5b3cc707c54b5723413c7e69b0f8f37c (diff) | |
download | scummvm-rg350-98f6315366eafc0568d46ee4d9cba8d0d6495950.tar.gz scummvm-rg350-98f6315366eafc0568d46ee4d9cba8d0d6495950.tar.bz2 scummvm-rg350-98f6315366eafc0568d46ee4d9cba8d0d6495950.zip |
GLK: HUGO: Removed unneeded method stubs
Diffstat (limited to 'engines/glk')
-rw-r--r-- | engines/glk/hugo/hemisc.cpp | 5 | ||||
-rw-r--r-- | engines/glk/hugo/hugo.h | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/engines/glk/hugo/hemisc.cpp b/engines/glk/hugo/hemisc.cpp index c380fbbe6a..4115abebc7 100644 --- a/engines/glk/hugo/hemisc.cpp +++ b/engines/glk/hugo/hemisc.cpp @@ -1544,7 +1544,7 @@ void Hugo::Printout(char *a, int no_scrollback_linebreak) { } if (script && (unsigned char)b[0]>=' ') - if (hugo_writetoscript(b) < 0) FatalError(WRITE_E); + if (hugo_fprintf(script, "%s", b) < 0) FatalError(WRITE_E); #if defined (SCROLLBACK_DEFINED) if (!inwindow && (unsigned char)b[0]>=' ') @@ -1655,7 +1655,8 @@ void Hugo::Printout(char *a, int no_scrollback_linebreak) { if (script && !no_scrollback_linebreak) { - if (hugo_writetoscript("\n")<0) FatalError(WRITE_E); + if (hugo_fprintf(script, "%s", "\n")<0) + FatalError(WRITE_E); } #if defined (SCROLLBACK_DEFINED) diff --git a/engines/glk/hugo/hugo.h b/engines/glk/hugo/hugo.h index 046b6654dc..eeb65a29be 100644 --- a/engines/glk/hugo/hugo.h +++ b/engines/glk/hugo/hugo.h @@ -333,6 +333,10 @@ private: // No implementation } + void hugo_closefiles() { + // Glk closes all files on exit + } + int hugo_getkey() const { // Not needed here--single-character events are handled solely by hugo_waitforkey(), below return 0; @@ -1111,12 +1115,9 @@ public: virtual Common::Error saveGameData(strid_t file, const Common::String &desc) override; // TODO: Stubs to be Properly implemented - void hugo_closefiles() {} - unsigned int FindWord(const char *a) { return 0; } void hugo_stopsample() {} void hugo_stopmusic() {} int hugo_hasgraphics() { return 0; } - int hugo_writetoscript(const char *s) { return 0; } void DisplayPicture() {} void PlayMusic() {} void PlaySample() {} |