LNXCORE/Kinc/Sources/kinc/rootunit.cpp
2025-01-29 10:55:49 +01:00

26 lines
658 B
C++

#ifdef KINC_LIVEPP
#include <kinc/system.h>
#include <Windows.h>
#include "LivePP/API/LPP_API_x64_CPP.h"
static lpp::LppDefaultAgent lppAgent;
void kinc_LivePP_start(void) {
// create a default agent, loading the Live++ agent from the given path, e.g. "ThirdParty/LivePP"
lppAgent = lpp::LppCreateDefaultAgent(KINC_LIVEPP_PATH);
// enable Live++ for all loaded modules
lppAgent.EnableModule(lpp::LppGetCurrentModulePath(), lpp::LPP_MODULES_OPTION_ALL_IMPORT_MODULES);
}
void kinc_LivePP_stop(void) {
// destroy the Live++ agent
lpp::LppDestroyDefaultAgent(&lppAgent);
}
#else
void kinc_start_LivePP(void) {}
void kinc_stop_LivePP(void) {}
#endif