summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-10-01 01:29:28 +0200
committerGitHub <noreply@github.com>2021-10-01 01:29:28 +0200
commitc3784b2a08c6419cb4242e1d38bafdd3aca32ce7 (patch)
tree7499b37e296fddb4fb8421c2edb10ae8a31191b3 /src
parentMerge pull request #7061 from ameerj/dma-buffer-misc (diff)
parentUse subdirectory of main data directory for QtWebEngine storage (diff)
downloadyuzu-c3784b2a08c6419cb4242e1d38bafdd3aca32ce7.tar
yuzu-c3784b2a08c6419cb4242e1d38bafdd3aca32ce7.tar.gz
yuzu-c3784b2a08c6419cb4242e1d38bafdd3aca32ce7.tar.bz2
yuzu-c3784b2a08c6419cb4242e1d38bafdd3aca32ce7.tar.lz
yuzu-c3784b2a08c6419cb4242e1d38bafdd3aca32ce7.tar.xz
yuzu-c3784b2a08c6419cb4242e1d38bafdd3aca32ce7.tar.zst
yuzu-c3784b2a08c6419cb4242e1d38bafdd3aca32ce7.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/applets/qt_web_browser.cpp3
1 files changed, 3 insertions, 0 deletions
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<InputInterpreter>(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;