diff options
| author | auth12 <[email protected]> | 2020-07-27 16:29:29 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-07-27 16:29:29 -0700 |
| commit | 9354a3bd08b63fd5f79f47f186876d3f3611828a (patch) | |
| tree | ec7e2d524f61e710c53fd5a45df4faf8a3565d9d /client/src/injection/mapper.cpp | |
| parent | Fixed support for colored text. (diff) | |
| download | loader-9354a3bd08b63fd5f79f47f186876d3f3611828a.tar.xz loader-9354a3bd08b63fd5f79f47f186876d3f3611828a.zip | |
Imported modules are now manual mapped.
Diffstat (limited to 'client/src/injection/mapper.cpp')
| -rw-r--r-- | client/src/injection/mapper.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/client/src/injection/mapper.cpp b/client/src/injection/mapper.cpp index 052dc39..3857948 100644 --- a/client/src/injection/mapper.cpp +++ b/client/src/injection/mapper.cpp @@ -44,17 +44,10 @@ void mmap::thread(tcp::client& client) { nlohmann::json final_imports; for (auto& [key, value] : imports.items()) { - - auto base = proc.load(key); - if (!base) { - io::log_error("failed to load {}", key); - continue; - } - for (auto& i : value) { auto name = i.get<std::string>(); - final_imports[name] = proc.module_export(base, name); + final_imports[name] = proc.module_export(proc.map(key), name); } } imports.clear(); |