-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added: list of
app_ids
for automatic game opening
- Loading branch information
Showing
5 changed files
with
125 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
#pragma once | ||
|
||
class injector | ||
class c_injector | ||
{ | ||
private: | ||
bool map( std::string process, std::wstring module_name, std::vector<std::uint8_t> binary_bytes ); | ||
bool map( std::string proc, std::wstring mod_name, std::vector<std::uint8_t> buf ); | ||
|
||
void close_processes( std::vector<std::string> processes ); | ||
|
||
std::vector<std::pair<int, std::string>> app_ids = | ||
{ | ||
{ 730, "csgo.exe" } // Counter-Strike: Global Offensive | ||
}; | ||
|
||
public: | ||
injector() = default; | ||
~injector() = default; | ||
c_injector() = default; | ||
~c_injector() = default; | ||
|
||
bool call( std::string process_name, std::string cheat_filename ); | ||
bool init( std::string process_name, std::string cheat_filename ); | ||
}; | ||
|
||
inline auto g_injector = injector(); | ||
inline auto g_injector = std::make_unique<c_injector>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters