From 3e07655b1b88d76d3c415db1b688683b61ac4762 Mon Sep 17 00:00:00 2001 From: v1993 Date: Fri, 24 Sep 2021 00:21:00 +0300 Subject: Use subdirectory of main data directory for QtWebEngine storage Previously, an unrelated directory was used for this. Keep everything together for consistency. --- src/yuzu/applets/qt_web_browser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/yuzu/applets/qt_web_browser.cpp b/src/yuzu/applets/qt_web_browser.cpp index 652d99570..7d433ca50 100644 --- a/src/yuzu/applets/qt_web_browser.cpp +++ b/src/yuzu/applets/qt_web_browser.cpp @@ -54,6 +54,9 @@ QtNXWebEngineView::QtNXWebEngineView(QWidget* parent, Core::System& system, input_interpreter(std::make_unique(system)), default_profile{QWebEngineProfile::defaultProfile()}, global_settings{QWebEngineSettings::globalSettings()} { + default_profile->setPersistentStoragePath(QString::fromStdString(Common::FS::PathToUTF8String( + Common::FS::GetYuzuPath(Common::FS::YuzuPath::YuzuDir) / "qtwebengine"))); + QWebEngineScript gamepad; QWebEngineScript window_nx; -- cgit v1.2.3