Add support for writing to file. Basics work now (having memstick on a content path)

This commit is contained in:
Henrik Rydgård committed 2021-06-07 00:24:52 +02:00
1 parent dba0a6ba12
commit 2f31cb12fb
8 files changed
+100 -35

No files matched your search

+3 -1
View File
@@ -131,8 +131,10 @@ bool GameManager::Uninstall(std::string name) {
void GameManager::Update() {
if (curDownload_.get() && curDownload_->Done()) {
INFO_LOG(HLE, "Download completed! Status = %d", curDownload_->ResultCode());
Path fileName = Path(curDownload_->outfile());
Path fileName = curDownload_->outfile();
if (curDownload_->ResultCode() == 200) {
// TODO: This fails. Wonder if there's a race condition?
if (!File::Exists(fileName)) {
ERROR_LOG(HLE, "Downloaded file '%s' does not exist :(", fileName.c_str());
curDownload_.reset();