2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-12-01 08:47:48 +00:00

feat: add modman favicon handler for windows

This commit is contained in:
Jan Laupetin
2025-10-31 20:56:19 +01:00
parent 5879fe3bb3
commit 87d65b99fb
4 changed files with 171 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#include "ModManArgs.h"
#include "Web/Binds/Binds.h"
#include "Web/Platform/AssetHandler.h"
#include "Web/Platform/Windows/FaviconHandlerWindows.h"
#include "Web/UiCommunication.h"
#include "Web/ViteAssets.h"
#include "Web/WebViewLib.h"
@@ -32,6 +33,7 @@ namespace
{
context.m_dev_tools_webview = std::make_unique<webview::webview>(false, nullptr);
auto& newWindow = *context.m_dev_tools_webview;
InstallFaviconHandler(newWindow);
newWindow.set_title("Devtools");
newWindow.set_size(640, 480, WEBVIEW_HINT_NONE);
@@ -66,6 +68,7 @@ namespace
newWindow.set_size(640, 480, WEBVIEW_HINT_MIN);
InstallAssetHandler(newWindow);
InstallFaviconHandler(newWindow);
ui::RegisterAllBinds(newWindow);
#ifdef _DEBUG