Skip to content

Commit

Permalink
detect skinhack
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshadow565 committed Aug 27, 2022
1 parent 5ae9617 commit 2fb8068
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cslol-tools/lib/lol/patcher/patcher_win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,16 @@ struct Context {
}
};

static bool skinhack_detected() {
std::error_code ec = {};
return fs::exists("C:/Fraps/LOLPRO.exe", ec);
}

auto patcher::run(std::function<bool(Message, char const*)> update,
fs::path const& profile_path,
fs::path const& config_path,
fs::path const& game_path) -> void {
lol_throw_if(skinhack_detected());
auto ctx = Context{};
ctx.set_prefix(profile_path);
ctx.load_config(config_path);
Expand Down

0 comments on commit 2fb8068

Please sign in to comment.