Browse Source

Use subdirectory of main data directory for QtWebEngine storage

Previously, an unrelated directory was used for this. Keep everything together for consistency.
v1993 4 years ago
parent
commit
3e07655b1b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/yuzu/applets/qt_web_browser.cpp

+ 3 - 0
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)),
       input_interpreter(std::make_unique<InputInterpreter>(system)),
       default_profile{QWebEngineProfile::defaultProfile()},
       default_profile{QWebEngineProfile::defaultProfile()},
       global_settings{QWebEngineSettings::globalSettings()} {
       global_settings{QWebEngineSettings::globalSettings()} {
+    default_profile->setPersistentStoragePath(QString::fromStdString(Common::FS::PathToUTF8String(
+        Common::FS::GetYuzuPath(Common::FS::YuzuPath::YuzuDir) / "qtwebengine")));
+
     QWebEngineScript gamepad;
     QWebEngineScript gamepad;
     QWebEngineScript window_nx;
     QWebEngineScript window_nx;