diff options
| author | 2014-10-06 15:25:19 -0400 | |
|---|---|---|
| committer | 2014-10-06 15:25:19 -0400 | |
| commit | 0e2d83fa3ab4aad56dc8813e45d5fdfe05132a5a (patch) | |
| tree | 766620c93a936e767cc073382573660041c2e193 /src/core/hle/kernel/archive.cpp | |
| parent | Merge pull request #125 from purpasmart96/master (diff) | |
| parent | Common: Add a helper function to generate a 8.3 filename from a long one. (diff) | |
| download | yuzu-0e2d83fa3ab4aad56dc8813e45d5fdfe05132a5a.tar.gz yuzu-0e2d83fa3ab4aad56dc8813e45d5fdfe05132a5a.tar.xz yuzu-0e2d83fa3ab4aad56dc8813e45d5fdfe05132a5a.zip | |
Merge pull request #129 from linkmauve/master
Fix the filesystem implementation in order to get blargSnes to run
Diffstat (limited to 'src/core/hle/kernel/archive.cpp')
| -rw-r--r-- | src/core/hle/kernel/archive.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/archive.cpp b/src/core/hle/kernel/archive.cpp index fa4972994..86aba7489 100644 --- a/src/core/hle/kernel/archive.cpp +++ b/src/core/hle/kernel/archive.cpp | |||
| @@ -181,6 +181,14 @@ public: | |||
| 181 | break; | 181 | break; |
| 182 | } | 182 | } |
| 183 | 183 | ||
| 184 | case FileCommand::SetSize: | ||
| 185 | { | ||
| 186 | u64 size = cmd_buff[1] | ((u64)cmd_buff[2] << 32); | ||
| 187 | DEBUG_LOG(KERNEL, "SetSize %s %s size=%d", GetTypeName().c_str(), GetName().c_str(), size); | ||
| 188 | backend->SetSize(size); | ||
| 189 | break; | ||
| 190 | } | ||
| 191 | |||
| 184 | case FileCommand::Close: | 192 | case FileCommand::Close: |
| 185 | { | 193 | { |
| 186 | DEBUG_LOG(KERNEL, "Close %s %s", GetTypeName().c_str(), GetName().c_str()); | 194 | DEBUG_LOG(KERNEL, "Close %s %s", GetTypeName().c_str(), GetName().c_str()); |
| @@ -366,6 +374,9 @@ Handle OpenFileFromArchive(Handle archive_handle, const std::string& path, const | |||
| 366 | file->path = path; | 374 | file->path = path; |
| 367 | file->backend = archive->backend->OpenFile(path, mode); | 375 | file->backend = archive->backend->OpenFile(path, mode); |
| 368 | 376 | ||
| 377 | if (!file->backend) | ||
| 378 | return 0; | ||
| 379 | |||
| 369 | return handle; | 380 | return handle; |
| 370 | } | 381 | } |
| 371 | 382 | ||