Feat: add Config/Utils headers and Loader module, wire entrypoint into DllMain

This commit is contained in:
xiaozhou233 committed 2026-08-15 12:26:12 +08:00
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;
}