add support for remote file using libcurl

This commit is contained in:
WarmUpTill
2020-06-15 21:19:34 +02:00
parent 2a92df4f3c
commit d3ab9e01c5
5 changed files with 131 additions and 47 deletions

View File

@@ -169,18 +169,19 @@ struct FileSwitch {
OBSWeakSource transition;
std::string file;
std::string text;
bool local = true;
bool remote = false;
bool useRegex = false;
bool useTime = false;
QDateTime lastMod;
inline FileSwitch(OBSWeakSource scene_, OBSWeakSource transition_,
const char *file_, const char *text_, bool useRegex_,
bool useTime_)
const char *file_, const char *text_, bool remote_,
bool useRegex_, bool useTime_)
: scene(scene_),
transition(transition_),
file(file_),
text(text_),
remote(remote_),
useRegex(useRegex_),
useTime(useTime_),
lastMod()