From e89080574f3b0b58811f02e00b1e3605fd297df6 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sat, 21 May 2016 03:11:10 +0200 Subject: [PATCH] renamed to SceneSwitcher.cpp --- ObsSceneSwitcher.cpp | 62 -------------------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 ObsSceneSwitcher.cpp diff --git a/ObsSceneSwitcher.cpp b/ObsSceneSwitcher.cpp deleted file mode 100644 index b9fae74f..00000000 --- a/ObsSceneSwitcher.cpp +++ /dev/null @@ -1,62 +0,0 @@ -// DexterSceneSwitcher.cpp : Defines the exported functions for the DLL application. -// - -#pragma once - -#include "stdafx.h" -#include "switcher.h" -#include -#include - - -using namespace std; - - -OBS_DECLARE_MODULE() - -bool running = false; -Switcher switcher; -thread switcherThread; - -bool obs_module_load(void) -{ - //maybe do some UI stuff? - - //void obs_register_modeless_ui(const struct obs_modeless_ui *info); - - //create thread - running = true; - map s = switcher.load(); - switcherThread = thread(switcherThreadFunc, s); - return true; - -} - - -void obs_module_unload(void) -{ - if(running) -{ - //tell the thread to stop working - switcher.stop(); - switcherThread.join(); -} -return; -} - -const char *obs_module_author(void) -{ - return "WarmUpTill"; -} - -const char *obs_module_name(void) -{ - return "DexterSceneSwitcher"; -} - -const char *obs_module_description(void) -{ - return "SceneSwitching for Dexter"; -} - -