From 9354a3bd08b63fd5f79f47f186876d3f3611828a Mon Sep 17 00:00:00 2001 From: auth12 <67507608+auth12@users.noreply.github.com> Date: Mon, 27 Jul 2020 16:29:29 -0700 Subject: Imported modules are now manual mapped. --- client/src/injection/mapper.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'client/src/injection/mapper.cpp') 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(); - final_imports[name] = proc.module_export(base, name); + final_imports[name] = proc.module_export(proc.map(key), name); } } imports.clear(); -- cgit v1.2.3