Skip to content

Commit

Permalink
Oops, fix a mistake in umd replacement.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Nov 25, 2014
1 parent 40950a4 commit ced555e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Core/FileSystems/BlockDevices.cpp
Expand Up @@ -92,7 +92,7 @@ bool FileBlockDevice::ReadBlock(int blockNumber, u8 *outPtr) {
}

bool FileBlockDevice::ReadBlocks(u32 minBlock, int count, u8 *outPtr) {
if (fileLoader_->ReadAt((u64)minBlock * (u64)GetBlockSize(), 2048, count, outPtr) != count) {
if (fileLoader_->ReadAt((u64)minBlock * (u64)GetBlockSize(), 2048, count, outPtr) != (size_t)count) {
ERROR_LOG(FILESYS, "Could not read %d bytes from block", 2048 * count);
return false;
}
Expand Down
3 changes: 1 addition & 2 deletions Core/HLE/sceUmd.cpp
Expand Up @@ -472,14 +472,13 @@ void __UmdReplace(std::string filepath) {
FileLoader *loadedFile = ConstructFileLoader(filepath);

IFileSystem* umd2;
FileInfo info;
if (!loadedFile->Exists()) {
delete loadedFile;
return;
}
UpdateLoadedFile(loadedFile);

if (info.isDirectory) {
if (loadedFile->IsDirectory()) {
umd2 = new VirtualDiscFileSystem(&pspFileSystem, filepath);
} else {
auto bd = constructBlockDevice(loadedFile);
Expand Down

0 comments on commit ced555e

Please sign in to comment.