mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 13:05:53 +08:00
Feat: add Config/Utils headers and Loader module, wire entrypoint into DllMain
This commit is contained in:
1 parent
998f4d139e
commit
ce08b19170
11 files changed
+19863
No files matched your search
@@ -1,6 +1,7 @@
|
||||
#include <windows.h>
|
||||
|
||||
#include "JuiceAgent/Logger.hpp"
|
||||
#include "Loader.hpp"
|
||||
|
||||
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) {
|
||||
switch (fdwReason) {
|
||||
@@ -9,6 +10,13 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) {
|
||||
Logger::init("libloader.log");
|
||||
|
||||
spdlog::info("DllMain: DLL_PROCESS_ATTACH");
|
||||
|
||||
// Get the runtime directory from the lpReserved parameter
|
||||
const char* runtime_dir = (const char*)lpReserved;
|
||||
spdlog::info("DllMain: runtime_dir: {}", runtime_dir);
|
||||
|
||||
JuiceAgent::Loader::entrypoint(runtime_dir);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user