Guest User

Untitled

a guest
Feb 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. namespace CLROBS
  2. {
  3.  
  4. public ref class API
  5. {
  6. public:
  7. void AddSettingsPane(SettingsPane^ settingsPane);
  8. void AddImageSourceFactory(ImageSourceFactory^ imageSourceFactory);
  9. IntPtr API::GetMainWindowHandle();
  10. void Log(System::String^ format, ...array<System::Object^> ^arguments);
  11. System::String^ GetPluginDataPath();
  12. void SetChangedSettings(bool isChanged);
  13. int GetMaxFPS();
  14. void StartStopStream(); // Addition to the original.
  15. };
  16. };
  17.  
  18. #include "OBSApi.h"
  19. #include "API.h"
  20. #include "CLRHostApi.h"
  21. #include "OBSUtils.h"
  22. using namespace System::Runtime::InteropServices;
  23. // Default code......
  24. int API::GetMaxFPS()
  25. {
  26. return ::API->GetMaxFPS();
  27. }
  28. void API::StartStopStream()
  29. {
  30. OBSStartStopStream();
  31. }
  32.  
  33. error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: CLROBS.API; methods: StartStopStream): (0x0600006c). <DIR>CLRHostPluginCLRHostInteropAPI.obj CLRHost.Interop
  34. error LNK2022: metadata operation failed (80131187) : Inconsistent method declarations in duplicated types (types: CLROBS.API; methods: StartStopStream): (0x0600006c). <DIR>CLRHostPluginCLRHostInteropAbstractPlugin.obj CLRHost.Interop
  35. error LNK2022: metadata operation failed (801311D6) : Differing number of methods in duplicated types (CLROBS.API): (0x02000008). <DIR>CLRHostPluginCLRHostInteropAPI.obj CLRHost.Interop
  36. error LNK2022: metadata operation failed (801311D6) : Differing number of methods in duplicated types (CLROBS.API): (0x02000008). <DIR>CLRHostPluginCLRHostInteropAbstractPlugin.obj CLRHost.Interop
  37.  
  38. namespace CLROBS
  39. {
  40.  
  41. public ref class API
  42. {
  43. public:
  44. void AddSettingsPane(SettingsPane^ settingsPane);
  45. void AddImageSourceFactory(ImageSourceFactory^ imageSourceFactory);
  46. IntPtr API::GetMainWindowHandle();
  47. void Log(System::String^ format, ...array<System::Object^> ^arguments);
  48. System::String^ GetPluginDataPath();
  49. void SetChangedSettings(bool isChanged);
  50. int GetMaxFPS();
  51. // - commented out - void StartStopStream(); // Addition to the original.
  52. };
  53. };
Add Comment
Please, Sign In to add comment