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:
byuu 2019-08-31 09:27:14 +09:00
parent 64e3658bcb
commit 5ae1bcd973
2 changed files with 5 additions and 1 deletions

View File

@ -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 {

View File

@ -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";
});