aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gb.h')
-rw-r--r--src/gb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gb.h b/src/gb.h
index 7218648..7959e60 100644
--- a/src/gb.h
+++ b/src/gb.h
@@ -116,6 +116,7 @@ struct GB {
bool serial_log; // print serial output to stderr (blargg tests)
int serial_out_fd; // if >=0, transmitted serial bytes written here (stdout)
int serial_in_fd; // if >=0, received serial bytes read here (stdin), else 0xFF
+ bool poweroff; // set by the $ED opcode: request a clean emulator exit
};
void gb_init(GB *gb);