Skip to content

Commit

Permalink
allow access to plugin ptr from external classes
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoKle committed Sep 15, 2024
1 parent 836e044 commit c40ce95
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ SET(SOURCE_FILES
src/vACDM.cpp
src/vACDM.h
src/main.cpp
src/main.h
src/Version.h
)

Expand Down
1 change: 1 addition & 0 deletions src/core/DataManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include "core/Server.h"
#include "log/Logger.h"
#include "main.h"
#include "utils/Date.h"

using namespace vacdm::com;
Expand Down
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
#include <EuroScopePlugIn.h>
#pragma warning(pop)

#include "main.h"
#include "vACDM.h"

std::unique_ptr<EuroScopePlugIn::CPlugIn> Plugin;
std::unique_ptr<vacdm::vACDM> Plugin;

void __declspec(dllexport) EuroScopePlugInInit(EuroScopePlugIn::CPlugIn **ppPlugInInstance) {
Plugin.reset(new vacdm::vACDM());
Expand Down
6 changes: 6 additions & 0 deletions src/main.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once
#include <memory>

#include "vACDM.h"

extern std::unique_ptr<vacdm::vACDM> Plugin;

0 comments on commit c40ce95

Please sign in to comment.