mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-02 02:58:37 +00:00
Merge pull request #4483 from xekarfwtos/tsa
Fixes issue #4477 : ULUS10419 : Tenchu: Shadow Assassins hangs the emu.
This commit is contained in:
commit
efc35103e5
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user