File tree Expand file tree Collapse file tree 4 files changed +18
-19
lines changed Expand file tree Collapse file tree 4 files changed +18
-19
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ This software would not be where it is today without the help and support of the
28
28
- Lioncash
29
29
- Lord Nightmare
30
30
- lowkey
31
- - Max833
32
31
- Matthew Callis
32
+ - Max833
33
33
- MerryMage
34
34
- mightymo
35
35
- Nach
Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ using namespace nall;
29
29
30
30
namespace Emulator {
31
31
static const string Name = " bsnes" ;
32
- static const string Version = " 114.6 " ;
32
+ static const string Version = " 115 " ;
33
33
static const string Copyright = " byuu" ;
34
34
static const string License = " GPLv3" ;
35
35
static const string Website = " https://byuu.org" ;
36
36
37
37
// incremented only when serialization format changes
38
- static const string SerializerVersion = " 114.2 " ;
38
+ static const string SerializerVersion = " 115 " ;
39
39
40
40
namespace Constants {
41
41
namespace Colorburst {
Original file line number Diff line number Diff line change @@ -31,12 +31,11 @@ auto InputManager::bindHotkeys() -> void {
31
31
32
32
hotkeys.append (InputHotkey (" Rewind" ).onPress ([&] {
33
33
if (!emulator->loaded () || program.fastForwarding ) return ;
34
- program.rewinding = true ;
35
34
if (program.rewind .frequency == 0 ) {
36
- program.showMessage (" Please enable rewind support in Settings->Emulator first" );
37
- } else {
38
- program.rewindMode (Program::Rewind::Mode::Rewinding);
35
+ return program.showMessage (" Please enable rewind support in Settings->Emulator first" );
39
36
}
37
+ program.rewinding = true ;
38
+ program.rewindMode (Program::Rewind::Mode::Rewinding);
40
39
volume = Emulator::audio.volume ();
41
40
if (settings.rewind .mute ) {
42
41
program.mute |= Program::Mute::Rewind;
Original file line number Diff line number Diff line change @@ -13,6 +13,18 @@ auto Program::rewindReset() -> void {
13
13
auto Program::rewindRun () -> void {
14
14
if (rewind.frequency == 0 ) return ; // rewind disabled?
15
15
16
+ if (rewind.mode == Rewind::Mode::Playing) {
17
+ if (++rewind.counter < rewind.frequency ) return ;
18
+
19
+ rewind.counter = 0 ;
20
+ if (rewind.history .size () >= rewind.length ) {
21
+ rewind.history .takeFirst ();
22
+ }
23
+ auto s = emulator->serialize (0 );
24
+ rewind.history .append (s);
25
+ return ;
26
+ }
27
+
16
28
if (rewind.mode == Rewind::Mode::Rewinding) {
17
29
if (rewind.history .size () == 0 ) return rewindMode (Rewind::Mode::Playing); // nothing left to rewind?
18
30
if (++rewind.counter < rewind.frequency / 4 ) return ;
@@ -27,16 +39,4 @@ auto Program::rewindRun() -> void {
27
39
emulator->unserialize (s);
28
40
return ;
29
41
}
30
-
31
- if (rewind.mode == Rewind::Mode::Playing) {
32
- if (++rewind.counter < rewind.frequency ) return ;
33
-
34
- rewind.counter = 0 ;
35
- if (rewind.history .size () >= rewind.length ) {
36
- rewind.history .takeFirst ();
37
- }
38
- auto s = emulator->serialize (0 );
39
- rewind.history .append (s);
40
- return ;
41
- }
42
42
}
You can’t perform that action at this time.
0 commit comments