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

chore: implement gtk handler for custom files

This commit is contained in:
Jan Laupetin
2025-10-05 18:31:39 +02:00
parent cb4b69c63b
commit cb2e83dfca
10 changed files with 166 additions and 22 deletions

View File

@@ -2,8 +2,8 @@
#include "webview/webview.h"
#pragma warning(pop)
#include "webview/edge/CustomProtocolHandlerEdge.h"
#include "webview/gtk/CustomProtocolHandlerGtk.h"
#include "Web/Edge/CustomProtocolHandlerEdge.h"
#include "Web/Gtk/CustomProtocolHandlerGtk.h"
#include <chrono>
#include <format>
@@ -57,7 +57,11 @@ int main()
edge::InstallCustomProtocolHandler(w);
#endif
w.navigate("http://modman/index.html");
#if defined(WEBVIEW_PLATFORM_LINUX) && defined(WEBVIEW_GTK)
gtk::InstallCustomProtocolHandler(w);
#endif
w.navigate("modman://localhost/index.html");
w.run();
}
catch (const webview::exception& e)