Skip to content

Commit

Permalink
fixup: graarhaH
Browse files Browse the repository at this point in the history
nightmare nightmare nightmare!
  • Loading branch information
ThisAMJ committed Oct 12, 2024
1 parent 865e9ca commit b7e1beb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Features/RNGManip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ Variable sar_rng_autosave("sar_rng_autosave", "0", "Automatically save RNG data

ON_EVENT(TAS_END) {
if (!sar_rng_autosave.GetBool() || event.interrupted) return;
auto filename = tasPlayer->playbackInfo.GetMainScript().path;
auto filename = tasPlayer->playbackInfo.GetMainScript().header.rngManipFile;
size_t lastdot = filename.find_last_of(".");
if (lastdot != std::string::npos) {
filename = filename.substr(0, lastdot);
Expand Down Expand Up @@ -279,9 +279,9 @@ CON_COMMAND(sar_rng_load, "sar_rng_load [filename] - load RNG seed data on next
std::string filename = "";
if (args.ArgC() == 1) {
if (tasPlayer->IsRunning()) {
filename = tasPlayer->playbackInfo.GetMainScript().path;
filename = tasPlayer->playbackInfo.GetMainScript().header.rngManipFile;
} else if (tasPlayer->previousPlaybackInfo.HasActiveSlot()) {
filename = tasPlayer->previousPlaybackInfo.GetMainScript().path;
filename = tasPlayer->previousPlaybackInfo.GetMainScript().header.rngManipFile;
} else {
console->Print(sar_rng_load.ThisPtr()->m_pszHelpString);
console->Print("No filename specified and no previous TAS script played\n");
Expand Down

0 comments on commit b7e1beb

Please sign in to comment.