Skip to content

Commit

Permalink
fix configless opt-in
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshadow565 committed Aug 11, 2023
1 parent d2f4c12 commit f1ab1a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cslol-tools/lib/lol/patcher/patcher_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ struct Context {

auto is_patchable(Process const& process) const noexcept -> bool {
auto const is_valid_ptr = [](PtrStorage ptr) { return ptr > 0x10000 && ptr < (1ull << 48); };
auto const ptr_CRYPTO_free = process.Rebase<PtrStorage>(config.get<"ptr_CreateFileA">());
auto const ptr_CRYPTO_free = process.Rebase<PtrStorage>(config.get<"ptr_CRYPTO_free">());
if (auto result = process.TryRead(ptr_CRYPTO_free); !result || !is_valid_ptr(*result)) {
return false;
} else if (!process.TryRead(Ptr<PtrStorage>(*result))) {
Expand Down
2 changes: 1 addition & 1 deletion cslol-tools/src/main_mod_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ int main(int argc, char** argv) {
flags.contains("--noTFT"),
flags.contains("--ignoreConflict"));
} else if (cmd == "runoverlay") {
mod_runoverlay(src, dst, flags["--game:"], flags["--opts"]);
mod_runoverlay(src, dst, flags["--game:"], flags["--opts:"]);
} else {
help(cmd);
}
Expand Down

0 comments on commit f1ab1a3

Please sign in to comment.