mirror of https://github.com/bsnes-emu/bsnes.git
Force disable entropy when recording movies from reset.
This prevents potential desyncs in games that don't initialize RAM/IO.
This commit is contained in:
parent
64e3658bcb
commit
5ae1bcd973
|
@ -41,6 +41,8 @@ auto Program::moviePlay() -> void {
|
||||||
if(!emulator->unserialize(s)) failed = true;
|
if(!emulator->unserialize(s)) failed = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
//entropy can desync movies recorded without save states
|
||||||
|
emulator->configure("Hacks/Entropy", "None");
|
||||||
emulator->power();
|
emulator->power();
|
||||||
}
|
}
|
||||||
if(!failed) {
|
if(!failed) {
|
||||||
|
@ -61,6 +63,8 @@ auto Program::movieRecord(bool fromBeginning) -> void {
|
||||||
if(movie.mode == Movie::Mode::Inactive) {
|
if(movie.mode == Movie::Mode::Inactive) {
|
||||||
movieMode(Movie::Mode::Recording);
|
movieMode(Movie::Mode::Recording);
|
||||||
if(fromBeginning) {
|
if(fromBeginning) {
|
||||||
|
//entropy can desync movies recorded without save states
|
||||||
|
emulator->configure("Hacks/Entropy", "None");
|
||||||
emulator->power();
|
emulator->power();
|
||||||
movie.state = {};
|
movie.state = {};
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -25,7 +25,7 @@ auto EmulatorSettings::create() -> void {
|
||||||
entropyLabel.setText("Entropy (randomness)").setFont(Font().setBold());
|
entropyLabel.setText("Entropy (randomness)").setFont(Font().setBold());
|
||||||
entropyNone.setText("None").setToolTip(
|
entropyNone.setText("None").setToolTip(
|
||||||
"All memory and registers are initialized to constant values at startup.\n"
|
"All memory and registers are initialized to constant values at startup.\n"
|
||||||
"Use this for movie recording and compatibility with very old demoscene homebrew games."
|
"Use this for compatibility with very old demoscene homebrew games."
|
||||||
).onActivate([&] {
|
).onActivate([&] {
|
||||||
settings.emulator.hack.entropy = "None";
|
settings.emulator.hack.entropy = "None";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue