Merge pull request #4483 from xekarfwtos/tsa

Fixes issue #4477 : ULUS10419 : Tenchu: Shadow Assassins hangs the emu.
This commit is contained in:
Henrik Rydgård 2013-11-12 04:33:24 -08:00
commit efc35103e5

View File

@ -722,6 +722,10 @@ u32 sceAtracGetBufferInfoForResetting(int atracID, int sample, u32 bufferInfoAdd
// minWritebytes should not be bigger than writeablebytes
minWritebytes = std::min(minWritebytes, (int)atrac->first.writableBytes);
if (atrac->first.fileoffset <= 2*atrac->atracBufSize){
Sampleoffset = atrac->first.fileoffset;
}
// If we've already loaded everything, the answer is 0.
if (atrac->first.size >= atrac->first.filesize) {
Sampleoffset = 0;