Explorar el Código

Merge pull request #7075 from v1993/power-of-tea

applets: Use subdirectory of main data directory for QtWebEngine storage
bunnei hace 4 años
padre
commit
c3784b2a08
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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)),
       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;