mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-22 01:44:49 -05:00
Add backwards compatibility check
This commit is contained in:
parent
299e7bc868
commit
f024199e2d
|
|
@ -105,6 +105,11 @@ else()
|
|||
include_directories("${LIBCURL_INCLUDE_DIRS}")
|
||||
endif()
|
||||
|
||||
# Backwards compatability with older OBS versions
|
||||
if(LibObs_VERSION_MAJOR GREATER_EQUAL 27 OR NOT LibObs_VERSION_MAJOR)
|
||||
add_definitions(-DVCAM_SUPPORTED)
|
||||
endif()
|
||||
|
||||
# Platform specific settings
|
||||
if(APPLE)
|
||||
find_library(COCOA Cocoa)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#ifdef VCAM_SUPPORTED
|
||||
|
||||
#pragma once
|
||||
#include "macro-action-edit.hpp"
|
||||
|
||||
|
|
@ -55,3 +57,5 @@ private:
|
|||
QHBoxLayout *_mainLayout;
|
||||
bool _loading = true;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#ifdef VCAM_SUPPORTED
|
||||
|
||||
#pragma once
|
||||
#include "macro.hpp"
|
||||
#include <QWidget>
|
||||
|
|
@ -52,3 +54,5 @@ protected:
|
|||
private:
|
||||
bool _loading = true;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#ifdef VCAM_SUPPORTED
|
||||
|
||||
#include "headers/macro-action-virtual-cam.hpp"
|
||||
#include "headers/advanced-scene-switcher.hpp"
|
||||
#include "headers/utility.hpp"
|
||||
|
|
@ -107,3 +109,5 @@ void MacroActionVCamEdit::ActionChanged(int value)
|
|||
std::lock_guard<std::mutex> lock(switcher->m);
|
||||
_entryData->_action = static_cast<VCamAction>(value);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
#ifdef VCAM_SUPPORTED
|
||||
|
||||
#include "headers/macro-condition-edit.hpp"
|
||||
#include "headers/macro-condition-virtual-cam.hpp"
|
||||
#include "headers/utility.hpp"
|
||||
|
|
@ -99,3 +101,5 @@ void MacroConditionVCamEdit::UpdateEntryData()
|
|||
|
||||
_states->setCurrentIndex(static_cast<int>(_entryData->_state));
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user