Skip to content

Commit

Permalink
- Fix for alignment of 0-length files when volume directory is create…
Browse files Browse the repository at this point in the history
…d from directory on disk

Updating constant value representation
  • Loading branch information
revel8n committed Apr 12, 2015
1 parent 008200d commit dc0fa15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DiscIO/VolumeDirectory.cpp
Expand Up @@ -459,7 +459,7 @@ void CVolumeDirectory::WriteEntry(const File::FSTEntry& entry, u32& fstOffset, u
m_virtualDisk.insert(make_pair(dataOffset, entry.physicalName));

// 4 byte aligned
dataOffset = ROUND_UP(dataOffset + entry.size, 0x8000ull);
dataOffset = ROUND_UP(dataOffset + std::max(entry.size, 1ull), 0x8000ull);
}
}

Expand Down

0 comments on commit dc0fa15

Please sign in to comment.