Skip to content

Commit

Permalink
GLK: HUGO: Removed unneeded method stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed May 12, 2019
1 parent 4113183 commit 98f6315
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions engines/glk/hugo/hemisc.cpp
Expand Up @@ -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]>=' ')
Expand Down Expand Up @@ -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)
Expand Down
7 changes: 4 additions & 3 deletions engines/glk/hugo/hugo.h
Expand Up @@ -333,6 +333,10 @@ class Hugo : public GlkAPI, public HTokens, public StringFunctions {
// 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;
Expand Down Expand Up @@ -1111,12 +1115,9 @@ class Hugo : public GlkAPI, public HTokens, public StringFunctions {
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() {}
Expand Down

0 comments on commit 98f6315

Please sign in to comment.