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;
|
||||
}
|
||||
} else {
|
||||
//entropy can desync movies recorded without save states
|
||||
emulator->configure("Hacks/Entropy", "None");
|
||||
emulator->power();
|
||||
}
|
||||
if(!failed) {
|
||||
|
@ -61,6 +63,8 @@ auto Program::movieRecord(bool fromBeginning) -> void {
|
|||
if(movie.mode == Movie::Mode::Inactive) {
|
||||
movieMode(Movie::Mode::Recording);
|
||||
if(fromBeginning) {
|
||||
//entropy can desync movies recorded without save states
|
||||
emulator->configure("Hacks/Entropy", "None");
|
||||
emulator->power();
|
||||
movie.state = {};
|
||||
} else {
|
||||
|
|
|
@ -25,7 +25,7 @@ auto EmulatorSettings::create() -> void {
|
|||
entropyLabel.setText("Entropy (randomness)").setFont(Font().setBold());
|
||||
entropyNone.setText("None").setToolTip(
|
||||
"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([&] {
|
||||
settings.emulator.hack.entropy = "None";
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue