File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ m_nMaxCacheFrames(30)
7272 m_pAudioCapture = new CAudioCapture ();
7373 m_bCaptureAudio = true ;
7474
75- OUTPUT_LOG (" MovieCodec intialized \n " );
75+ OUTPUT_LOG (" MovieCodec initialized \n " );
7676}
7777
7878ParaEngine::MovieCodec::~MovieCodec ()
Original file line number Diff line number Diff line change @@ -25,10 +25,24 @@ extern "C" {
2525 CORE_EXPORT_DECL ParaEngine::ClassDescriptor* LibClassDesc (int i);
2626 CORE_EXPORT_DECL void LibInit ();
2727 CORE_EXPORT_DECL void LibActivate (int nType, void * pVoid);
28+ CORE_EXPORT_DECL void LibInitParaEngine (ParaEngine::IParaEngineCore* pCoreInterface);
2829#ifdef __cplusplus
2930} /* extern "C" */
3031#endif
3132
33+
34+ ParaEngine::IParaEngineCore* g_pCoreInterface = NULL ;
35+ ParaEngine::IParaEngineCore* GetCoreInterface ()
36+ {
37+ return g_pCoreInterface;
38+ }
39+
40+ CORE_EXPORT_DECL void LibInitParaEngine (ParaEngine::IParaEngineCore* pCoreInterface)
41+ {
42+ g_pCoreInterface = pCoreInterface;
43+ }
44+
45+
3246HINSTANCE Instance = NULL ;
3347
3448using namespace ParaEngine ;
Original file line number Diff line number Diff line change 66 LibVersion @4
77 LibInit @5
88 LibActivate @6
9+ LibInitParaEngine @7
910
1011SECTIONS
1112 .data READ WRITE
Original file line number Diff line number Diff line change 88
99
1010#include "PluginAPI.h"
11+
12+ /**
13+ * Optional NPL includes, just in case you want to use some core functions see GetCoreInterface()
14+ */
15+ #include "IParaEngineCore.h"
1116#include "IParaEngineApp.h"
1217
18+ extern ParaEngine ::IParaEngineCore * GetCoreInterface ();
1319
1420#ifndef OUTPUT_LOG
15- #define OUTPUT_LOG ParaEngine::CParaEngineCore::GetParaEngineCOREInterface ()->GetAppInterface()->WriteToLog
21+ #define OUTPUT_LOG GetCoreInterface ()->GetAppInterface()->WriteToLog
1622//#define OUTPUT_LOG printf
1723#endif
1824
You can’t perform that action at this time.
0 commit comments