mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-18 09:24:58 +00:00
Some nits and fixes on paths (#1190)
* Some nits and fixes * More path conversions * Add some more logging * Log the path too
This commit is contained in:
parent
ee1e55d5e1
commit
d20efcb0d2
6 changed files with 31 additions and 19 deletions
|
@ -343,8 +343,8 @@ void CheckUpdate::DownloadUpdate(const QString& url) {
|
|||
return;
|
||||
}
|
||||
|
||||
QString userPath =
|
||||
QString::fromStdString(Common::FS::GetUserPath(Common::FS::PathType::UserDir).string());
|
||||
QString userPath;
|
||||
Common::FS::PathToQString(userPath, Common::FS::GetUserPath(Common::FS::PathType::UserDir));
|
||||
QString tempDownloadPath = userPath + "/temp_download_update";
|
||||
QDir dir(tempDownloadPath);
|
||||
if (!dir.exists()) {
|
||||
|
@ -371,12 +371,13 @@ void CheckUpdate::DownloadUpdate(const QString& url) {
|
|||
}
|
||||
|
||||
void CheckUpdate::Install() {
|
||||
QString userPath =
|
||||
QString::fromStdString(Common::FS::GetUserPath(Common::FS::PathType::UserDir).string());
|
||||
QString userPath;
|
||||
Common::FS::PathToQString(userPath, Common::FS::GetUserPath(Common::FS::PathType::UserDir));
|
||||
|
||||
QString startingUpdate = tr("Starting 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 scriptFileName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue