Skip to content

Commit

Permalink
Reverting changes of work directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
MiranDMC committed Oct 6, 2024
1 parent a669995 commit 0f11a66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cleo_plugins/FileSystemOperations/FileSystemOperations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ class FileSystemOperations
LOG_WARNING(0, "Value (%d) not known by opcode [0A99] in script %s", idx, ScriptInfoStr(thread).c_str());
return OR_CONTINUE;
}

// Hack: restore global workDir if script used some hacky way to set it instead of 0A99 (SkinSelector)
if (idx == 0)
{
FS::current_path(CLEO_GetGameDirectory());
}
}
else
{
Expand Down

0 comments on commit 0f11a66

Please sign in to comment.