Implemented function ordinal detection algorithm

This commit is contained in:
acidicoala
2023-01-07 00:24:16 +03:00
parent eb888b91b5
commit 1d36cfb3be
9 changed files with 404 additions and 157 deletions

View File

@@ -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) {