Skip to content

Commit

Permalink
Fixed injection
Browse files Browse the repository at this point in the history
  • Loading branch information
leo4048111 committed Oct 29, 2023
1 parent f563a12 commit 284224d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion injector/injector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ bool Injector::map(std::wstring_view procname, std::wstring_view modname, std::v
proc.Detach();
return false;
}
for (const auto& mod : proc.modules().GetAllModules()) {
auto mods = proc.modules().GetAllModules();
for (const auto& mod : mods) {
if (mod.first.first == modname)
{
modReady = true;
Expand Down
2 changes: 1 addition & 1 deletion vars/vars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace vars
inline std::wstring_view str_game_process_name{ L"cs2.exe" };
inline std::wstring_view str_dll_name{ L"cheat.dll" };
inline std::wstring_view str_steam_mod_name{ L"tier0_s.dll" };
inline std::wstring_view str_game_mod_name{ L"serverbrowser.dll" };
inline std::wstring_view str_game_mod_name{ L"matchmaking.dll" };
inline uint32_t game_appid{ 730 };
inline std::wstring str_game_launch_opts{ L"-console -worldwide -novid" };
inline std::wstring_view str_dll_dir_path{ L"./dlls" };
Expand Down

0 comments on commit 284224d

Please sign in to comment.