mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 08:13:34 +01:00
Add support for writing to file. Basics work now (having memstick on a content path)
This commit is contained in:
1 parent
dba0a6ba12
commit
2f31cb12fb
8 files changed
+100
-35
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user