From 32a42eefff71dd1f3bf9b13d89c388eae1825d51 Mon Sep 17 00:00:00 2001 From: Alexey Nurgaliev Date: Fri, 11 Aug 2023 00:42:53 +0300 Subject: [PATCH] add rewind button only if rewind enabled --- data/emulator.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/data/emulator.js b/data/emulator.js index 0f55c6d..097d3ba 100644 --- a/data/emulator.js +++ b/data/emulator.js @@ -2036,9 +2036,11 @@ class EmulatorJS { {id: 24, label: this.localization('QUICK SAVE STATE')}, {id: 25, label: this.localization('QUICK LOAD STATE')}, {id: 26, label: this.localization('CHANGE STATE SLOT')}, - {id: 27, label: this.localization('FAST FORWARD')}, - {id: 28, label: this.localization('REWIND')} + {id: 27, label: this.localization('FAST FORWARD')} ); + if (window.EJS_rewindEnabled) { + buttons.push({id: 28, label: this.localization('REWIND')}); + } //if (_this.statesSupported === false) { // delete buttons[24]; // delete buttons[25];