aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/glk/frotz/glk_interface.cpp6
-rw-r--r--engines/glk/frotz/glk_interface.h8
-rw-r--r--engines/glk/frotz/processor.cpp3
-rw-r--r--engines/glk/frotz/processor.h6
4 files changed, 10 insertions, 13 deletions
diff --git a/engines/glk/frotz/glk_interface.cpp b/engines/glk/frotz/glk_interface.cpp
index b9652bce46..6a0d510d85 100644
--- a/engines/glk/frotz/glk_interface.cpp
+++ b/engines/glk/frotz/glk_interface.cpp
@@ -32,10 +32,8 @@ GlkInterface::GlkInterface(OSystem *syst, const GlkGameDescription &gameDesc) :
curr_status_ht(0), mach_status_ht(0), gos_status(nullptr), gos_upper(nullptr),
gos_lower(nullptr), gos_curwin(nullptr), gos_linepending(0), gos_linebuf(nullptr),
gos_linewin(nullptr), gos_channel(nullptr), cwin(0), mwin(0), mouse_x(0), mouse_y(0),
- menu_selected(0), ostream_screen(false), ostream_script(false), ostream_memory(false),
- ostream_record(false), istream_replay(false), message(false),
- enable_wrapping(false), enable_scripting(false), enable_scrolling(false),
- enable_buffering(false), next_sample(0), next_volume(0),
+ menu_selected(0), enable_wrapping(false), enable_scripting(false),
+ enable_scrolling(false), enable_buffering(false), next_sample(0), next_volume(0),
_soundLocked(false), _soundPlaying(false) {
Common::fill(&statusline[0], &statusline[256], '\0');
}
diff --git a/engines/glk/frotz/glk_interface.h b/engines/glk/frotz/glk_interface.h
index 8bbdb735df..c18ebb8c59 100644
--- a/engines/glk/frotz/glk_interface.h
+++ b/engines/glk/frotz/glk_interface.h
@@ -81,14 +81,6 @@ public:
int mouse_x;
int menu_selected;
- // IO streams
- bool ostream_screen;
- bool ostream_script;
- bool ostream_memory;
- bool ostream_record;
- bool istream_replay;
- bool message;
-
// Window attributes
bool enable_wrapping;
bool enable_scripting;
diff --git a/engines/glk/frotz/processor.cpp b/engines/glk/frotz/processor.cpp
index 442b0079fe..eaa7310fc7 100644
--- a/engines/glk/frotz/processor.cpp
+++ b/engines/glk/frotz/processor.cpp
@@ -137,7 +137,8 @@ Processor::Processor(OSystem *syst, const GlkGameDescription &gameDesc) :
zargc(0), _decoded(nullptr), _encoded(nullptr), _resolution(0),
_randomInterval(0), _randomCtr(0), first_restart(true), script_valid(false),
_bufPos(0), _locked(false), _prevC('\0'), script_width(0),
- sfp(nullptr), rfp(nullptr), pfp(nullptr) {
+ sfp(nullptr), rfp(nullptr), pfp(nullptr), ostream_screen(true), ostream_script(false),
+ ostream_memory(false), ostream_record(false), istream_replay(false), message(false) {
static const Opcode OP0_OPCODES[16] = {
&Processor::z_rtrue,
&Processor::z_rfalse,
diff --git a/engines/glk/frotz/processor.h b/engines/glk/frotz/processor.h
index ddb264ca3f..1a1dfc5fe3 100644
--- a/engines/glk/frotz/processor.h
+++ b/engines/glk/frotz/processor.h
@@ -88,6 +88,12 @@ private:
// Stream related fields
int script_width;
strid_t sfp, rfp, pfp;
+ bool ostream_screen;
+ bool ostream_script;
+ bool ostream_memory;
+ bool ostream_record;
+ bool istream_replay;
+ bool message;
Common::FixedStack<Redirect, MAX_NESTING> _redirect;
private:
/**