Update Files
This commit is contained in:
25
Kha/Kinc/Sources/kinc/rootcppunit.cpp
Normal file
25
Kha/Kinc/Sources/kinc/rootcppunit.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
#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
|
Reference in New Issue
Block a user