intial phase 1 subsytem split
All checks were successful
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Successful in 2m31s
CI / Windows Release Package (push) Successful in 2m32s

This commit is contained in:
Aiden
2026-05-10 23:03:15 +10:00
parent 618831d578
commit 3629227aa9
12 changed files with 348 additions and 61 deletions

View File

@@ -0,0 +1,51 @@
#pragma once
#include "RuntimeHost.h"
#include <filesystem>
#include <string>
class RuntimeStore
{
public:
explicit RuntimeStore(RuntimeHost& runtimeHost);
bool Initialize(std::string& error);
bool AddLayer(const std::string& shaderId, std::string& error);
bool RemoveLayer(const std::string& layerId, std::string& error);
bool MoveLayer(const std::string& layerId, int direction, std::string& error);
bool MoveLayerToIndex(const std::string& layerId, std::size_t targetIndex, std::string& error);
bool SetLayerBypass(const std::string& layerId, bool bypassed, std::string& error);
bool SetLayerShader(const std::string& layerId, const std::string& shaderId, std::string& error);
bool UpdateLayerParameter(const std::string& layerId, const std::string& parameterId, const JsonValue& newValue, std::string& error);
bool UpdateLayerParameterByControlKey(const std::string& layerKey, const std::string& parameterKey, const JsonValue& newValue, std::string& error);
bool UpdateLayerParameterByControlKey(const std::string& layerKey, const std::string& parameterKey, const JsonValue& newValue, bool persistState, std::string& error);
bool ResetLayerParameters(const std::string& layerId, std::string& error);
bool SaveStackPreset(const std::string& presetName, std::string& error) const;
bool LoadStackPreset(const std::string& presetName, std::string& error);
std::string BuildStateJson() const;
const std::filesystem::path& GetRepoRoot() const;
const std::filesystem::path& GetUiRoot() const;
const std::filesystem::path& GetDocsRoot() const;
const std::filesystem::path& GetRuntimeRoot() const;
unsigned short GetServerPort() const;
unsigned short GetOscPort() const;
const std::string& GetOscBindAddress() const;
double GetOscSmoothing() const;
unsigned GetMaxTemporalHistoryFrames() const;
unsigned GetPreviewFps() const;
bool ExternalKeyingEnabled() const;
const std::string& GetInputVideoFormat() const;
const std::string& GetInputFrameRate() const;
const std::string& GetOutputVideoFormat() const;
const std::string& GetOutputFrameRate() const;
void SetCompileStatus(bool succeeded, const std::string& message);
void ClearReloadRequest();
private:
RuntimeHost& mRuntimeHost;
};