mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 00:13:08 +00:00
More path conversions
This commit is contained in:
parent
bd4e9f1803
commit
62077b654f
@ -343,8 +343,8 @@ void CheckUpdate::DownloadUpdate(const QString& url) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
QString userPath =
|
QString userPath;
|
||||||
QString::fromStdString(Common::FS::GetUserPath(Common::FS::PathType::UserDir).string());
|
Common::FS::PathToQString(userPath, Common::FS::GetUserPath(Common::FS::PathType::UserDir));
|
||||||
QString tempDownloadPath = userPath + "/temp_download_update";
|
QString tempDownloadPath = userPath + "/temp_download_update";
|
||||||
QDir dir(tempDownloadPath);
|
QDir dir(tempDownloadPath);
|
||||||
if (!dir.exists()) {
|
if (!dir.exists()) {
|
||||||
@ -371,12 +371,13 @@ void CheckUpdate::DownloadUpdate(const QString& url) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CheckUpdate::Install() {
|
void CheckUpdate::Install() {
|
||||||
QString userPath =
|
QString userPath;
|
||||||
QString::fromStdString(Common::FS::GetUserPath(Common::FS::PathType::UserDir).string());
|
Common::FS::PathToQString(userPath, Common::FS::GetUserPath(Common::FS::PathType::UserDir));
|
||||||
|
|
||||||
QString startingUpdate = tr("Starting Update...");
|
QString startingUpdate = tr("Starting Update...");
|
||||||
QString tempDirPath = userPath + "/temp_download_update";
|
QString tempDirPath = userPath + "/temp_download_update";
|
||||||
QString rootPath = QString::fromStdString(std::filesystem::current_path().string());
|
QString rootPath;
|
||||||
|
Common::FS::PathToQString(rootPath, std::filesystem::current_path());
|
||||||
|
|
||||||
QString scriptContent;
|
QString scriptContent;
|
||||||
QString scriptFileName;
|
QString scriptFileName;
|
||||||
|
Loading…
Reference in New Issue
Block a user