Skip to content

Commit

Permalink
Merge pull request #57 from jac3km4/fix-accidental-path-mutation
Browse files Browse the repository at this point in the history
fix: fix accidental blob path change
  • Loading branch information
WopsS authored Mar 21, 2024
2 parents cfb41ec + 55e108a commit 6f64d6a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/dll/Hooks/ExecuteProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ bool ExecuteScc(SccApi& scc)

ScriptCompilerSettings settings(scc, App::Get()->GetPaths()->GetR6Dir());

std::filesystem::path blobPath = scriptSystem->HasScriptsBlob() ? scriptSystem->GetScriptsBlob()
: App::Get()->GetPaths()->GetDefaultScriptsBlob();
auto moddedCacheFile = blobPath.replace_extension("redscripts.modded");
const auto blobPath = scriptSystem->HasScriptsBlob() ? scriptSystem->GetScriptsBlob()
: App::Get()->GetPaths()->GetDefaultScriptsBlob();

auto moddedCacheFile = blobPath;
moddedCacheFile.replace_extension("redscripts.modded");

if (scriptSystem->HasScriptsBlob())
{
Expand Down

0 comments on commit 6f64d6a

Please sign in to comment.