3
0
Fork 0
forked from suyu/suyu

Use subdirectory of main data directory for QtWebEngine storage

Previously, an unrelated directory was used for this. Keep everything together for consistency.
This commit is contained in:
v1993 2021-09-24 00:21:00 +03:00
parent 17bf40f405
commit 3e07655b1b
No known key found for this signature in database
GPG key ID: 9A30914F19F1D7C8

View file

@ -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;