From c7dc1b3d8da1091f4975d597536d1158c11e3e7e Mon Sep 17 00:00:00 2001 From: Metick <45372336+Metick@users.noreply.github.com> Date: Tue, 9 Apr 2024 17:46:53 +0200 Subject: [PATCH] fix modules not showing up for stable CE version Fixed the issue mentioned in #3 which as Lauralex pointed out is fixed on the main source already, but isn't fixed on stable version yet. so we just write the binary name to path to solve the issue (: --- DMALibrary/Memory/Memory.h | 2 +- plugin/Hooks/module.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DMALibrary/Memory/Memory.h b/DMALibrary/Memory/Memory.h index 6bcb8d3..2efd89c 100644 --- a/DMALibrary/Memory/Memory.h +++ b/DMALibrary/Memory/Memory.h @@ -145,7 +145,7 @@ class Memory * @param module the name of the module that you wanna find the export in * @return the export table address of the export */ - uintptr_t GetExportTableAddress(std::string import, std::string process, std::string module); + uintptr_t GetExportTableAddress(std::string import, std::string process, std::string module, bool kernel = false); /** * brief Gets the import table address of the process diff --git a/plugin/Hooks/module.cpp b/plugin/Hooks/module.cpp index a7224ba..c450f76 100644 --- a/plugin/Hooks/module.cpp +++ b/plugin/Hooks/module.cpp @@ -19,6 +19,7 @@ namespace Hooks lpme->modBaseSize = module_info->pMap[current_module].cbImageSize; lpme->modBaseAddr = (BYTE*)module_info->pMap[current_module].vaBase; strcpy(lpme->szModule, module_info->pMap[current_module].uszText); + strcpy(lpme->szExePath, module_info->pMap[current_module].uszText); return true; } @@ -36,6 +37,7 @@ namespace Hooks lpme->modBaseSize = module_info->pMap[current_module].cbImageSize; lpme->modBaseAddr = (BYTE*)module_info->pMap[current_module].vaBase; strcpy(lpme->szModule, module_info->pMap[current_module].uszText); + strcpy(lpme->szExePath, module_info->pMap[current_module].uszText); current_module++; return true; }