mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
37 lines
773 B
C++
37 lines
773 B
C++
#pragma once
|
|
#include "settings.h"
|
|
#include <map>
|
|
#include <mutex>
|
|
#include <vector>
|
|
#include <thread>
|
|
|
|
using namespace std;
|
|
|
|
class Switcher {
|
|
public:
|
|
bool getIsRunning();
|
|
void firstLoad();
|
|
void load();
|
|
void start();
|
|
void stop();
|
|
void openUI();
|
|
string getSettingsFilePath();
|
|
void setSettingsFilePath(string path);
|
|
thread switcherThread;
|
|
~Switcher();
|
|
private:
|
|
bool isRunning = true;
|
|
Settings settings;
|
|
map<string, Data> settingsMap;
|
|
pair<vector<string>, vector<string>> sceneRoundTrip;
|
|
vector<string> pauseScenes;
|
|
vector<string> ignoreNames;
|
|
void switcherThreadFunc();
|
|
bool isWindowFullscreen();
|
|
string GetActiveWindowTitle();
|
|
pair<int, int> getCursorXY();
|
|
bool quit;
|
|
mutex mtx;
|
|
condition_variable terminate;
|
|
};
|