diff options
| author | auth12 <[email protected]> | 2020-07-28 07:34:55 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-07-28 07:34:55 -0700 |
| commit | 733272ed4960324a20606fba1b7810412c06bac7 (patch) | |
| tree | e7f33f10eae3a212fcdd2250910a7d7d88d67069 /client/src/util/apiset.h | |
| parent | Removed linuxpe dependency on windows client. (diff) | |
| download | loader-733272ed4960324a20606fba1b7810412c06bac7.tar.xz loader-733272ed4960324a20606fba1b7810412c06bac7.zip | |
Process class redesign.
Diffstat (limited to 'client/src/util/apiset.h')
| -rw-r--r-- | client/src/util/apiset.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/src/util/apiset.h b/client/src/util/apiset.h index 440dcc0..a13f3bb 100644 --- a/client/src/util/apiset.h +++ b/client/src/util/apiset.h @@ -5,14 +5,16 @@ class apiset { public: apiset(); - void operator()(std::string &mod) { + bool operator()(std::string &mod) { auto it = std::find_if(m_apimap.begin(), m_apimap.end(), [&](const std::pair<std::string, std::string>& pair) { return mod.find(pair.first) != std::string::npos; }); if (it != m_apimap.end()) { mod = it->second; + return true; } + return false; } auto &map() { return m_apimap; } |