mirror of
https://github.com/acidicoala/SmokeAPI.git
synced 2026-01-25 14:02:55 -05:00
Implemented function ordinal detection algorithm
This commit is contained in:
@@ -65,13 +65,13 @@ namespace smoke_api {
|
||||
|
||||
// Verify that it's steam from valve, and not some other executable coincidentally named steam
|
||||
|
||||
if (!manifest.has_value()) {
|
||||
if (!manifest) {
|
||||
// Steam.exe is expected to have a manifest
|
||||
return false;
|
||||
}
|
||||
|
||||
// Steam.exe manifest is expected to contain this string
|
||||
return manifest.value().find("valvesoftware.steam.steam") != String::npos;
|
||||
return manifest->find("valvesoftware.steam.steam") != String::npos;
|
||||
}
|
||||
|
||||
void init(HMODULE module_handle) {
|
||||
|
||||
Reference in New Issue
Block a user