mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 08:13:34 +01:00
http: Use Path for the download file.
This commit is contained in:
1 parent
ed2ade4e22
commit
2a9170a2ea
9 files changed
+29
-24
No files matched your search
@@ -52,15 +52,15 @@ GameManager g_GameManager;
|
||||
GameManager::GameManager() {
|
||||
}
|
||||
|
||||
std::string GameManager::GetTempFilename() const {
|
||||
Path GameManager::GetTempFilename() const {
|
||||
#ifdef _WIN32
|
||||
wchar_t tempPath[MAX_PATH];
|
||||
GetTempPath(MAX_PATH, tempPath);
|
||||
wchar_t buffer[MAX_PATH];
|
||||
GetTempFileName(tempPath, L"PSP", 1, buffer);
|
||||
return ConvertWStringToUTF8(buffer);
|
||||
return Path(buffer);
|
||||
#else
|
||||
return (g_Config.memStickDirectory / "ppsspp.dl").ToString();
|
||||
return g_Config.memStickDirectory / "ppsspp.dl";
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ bool GameManager::DownloadAndInstall(std::string storeFileUrl) {
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string filename = GetTempFilename();
|
||||
Path filename = GetTempFilename();
|
||||
curDownload_ = g_DownloadManager.StartDownload(storeFileUrl, filename);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user