2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-30 16:27:47 +00:00

chore: save shared modman info in context

This commit is contained in:
Jan Laupetin
2025-10-10 10:57:07 +01:00
parent 9845b0a889
commit 219f0c1c85
7 changed files with 68 additions and 64 deletions

View File

@@ -0,0 +1,7 @@
#include "ModManContext.h"
ModManContext& ModManContext::Get()
{
static ModManContext context;
return context;
}

View File

@@ -0,0 +1,14 @@
#pragma once
#include "Web/WebViewLib.h"
#include <memory>
class ModManContext
{
public:
static ModManContext& Get();
std::unique_ptr<webview::webview> m_main_webview;
std::unique_ptr<webview::webview> m_dev_tools_webview;
};