Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace CLROBS
- {
- public ref class API
- {
- public:
- void AddSettingsPane(SettingsPane^ settingsPane);
- void AddImageSourceFactory(ImageSourceFactory^ imageSourceFactory);
- IntPtr API::GetMainWindowHandle();
- void Log(System::String^ format, ...array<System::Object^> ^arguments);
- System::String^ GetPluginDataPath();
- void SetChangedSettings(bool isChanged);
- int GetMaxFPS();
- void StartStopStream(); // Addition to the original.
- };
- };
- #include "OBSApi.h"
- #include "API.h"
- #include "CLRHostApi.h"
- #include "OBSUtils.h"
- using namespace System::Runtime::InteropServices;
- // Default code......
- int API::GetMaxFPS()
- {
- return ::API->GetMaxFPS();
- }
- void API::StartStopStream()
- {
- OBSStartStopStream();
- }
- error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: CLROBS.API; methods: StartStopStream): (0x0600006c). <DIR>CLRHostPluginCLRHostInteropAPI.obj CLRHost.Interop
- error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: CLROBS.API; methods: StartStopStream): (0x0600006c). <DIR>CLRHostPluginCLRHostInteropAbstractPlugin.obj CLRHost.Interop
- error LNK2022: metadata operation failed (801311D6) : Differing number of methods in duplicated types (CLROBS.API): (0x02000008). <DIR>CLRHostPluginCLRHostInteropAPI.obj CLRHost.Interop
- error LNK2022: metadata operation failed (801311D6) : Differing number of methods in duplicated types (CLROBS.API): (0x02000008). <DIR>CLRHostPluginCLRHostInteropAbstractPlugin.obj CLRHost.Interop
- namespace CLROBS
- {
- public ref class API
- {
- public:
- void AddSettingsPane(SettingsPane^ settingsPane);
- void AddImageSourceFactory(ImageSourceFactory^ imageSourceFactory);
- IntPtr API::GetMainWindowHandle();
- void Log(System::String^ format, ...array<System::Object^> ^arguments);
- System::String^ GetPluginDataPath();
- void SetChangedSettings(bool isChanged);
- int GetMaxFPS();
- // - commented out - void StartStopStream(); // Addition to the original.
- };
- };
Add Comment
Please, Sign In to add comment