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:
7
src/ModMan/Context/ModManContext.cpp
Normal file
7
src/ModMan/Context/ModManContext.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "ModManContext.h"
|
||||
|
||||
ModManContext& ModManContext::Get()
|
||||
{
|
||||
static ModManContext context;
|
||||
return context;
|
||||
}
|
||||
14
src/ModMan/Context/ModManContext.h
Normal file
14
src/ModMan/Context/ModManContext.h
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user