aboutsummaryrefslogtreecommitdiff
path: root/primedev/thirdparty/silver-bun/module.h
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2024-08-27 07:48:33 +0100
committerGitHub <noreply@github.com>2024-08-27 08:48:33 +0200
commitf1288350c729d63aeeb0a6bdab0746b865131668 (patch)
treebcad7f52872c962b47969df3a2f07ee3fec90ef2 /primedev/thirdparty/silver-bun/module.h
parent932735e0500f6fc4d43ee949754c6a6a7c48d3e2 (diff)
downloadNorthstarLauncher-1.27.3-rc6.tar.gz
NorthstarLauncher-1.27.3-rc6.zip
hooking: run callbacks for imported modules (#780)v1.27.3-rc6v1.27.3
Previously we only ran callbacks for modules loaded using WinAPI. This now also runs callbacks for modules imported by those loaded by WinAPI. This fixes callbacks for miles and bink dlls.
Diffstat (limited to 'primedev/thirdparty/silver-bun/module.h')
-rw-r--r--primedev/thirdparty/silver-bun/module.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/primedev/thirdparty/silver-bun/module.h b/primedev/thirdparty/silver-bun/module.h
index 5683ee14..cc513086 100644
--- a/primedev/thirdparty/silver-bun/module.h
+++ b/primedev/thirdparty/silver-bun/module.h
@@ -52,6 +52,7 @@ public:
ModuleSections_t GetSectionByName(const char* szSectionName) const;
inline const std::vector<CModule::ModuleSections_t>& GetSections() const { return m_ModuleSections; }
+ inline const std::vector<std::string>& GetImportedModules() const { return m_vImportedModules; }
inline uintptr_t GetModuleBase(void) const { return m_pModuleBase; }
inline DWORD GetModuleSize(void) const { return m_nModuleSize; }
inline const std::string& GetModuleName(void) const { return m_ModuleName; }
@@ -73,4 +74,5 @@ private:
uintptr_t m_pModuleBase;
DWORD m_nModuleSize;
std::vector<ModuleSections_t> m_ModuleSections;
+ std::vector<std::string> m_vImportedModules;
};