Don't just say 0 for remainFrame in sceAtrac.

Fixes LittleBigPlanet.
This commit is contained in:
Unknown W. Brackets committed 2013-05-05 09:28:36 -07:00
1 parent bbbfa715cd
commit 0d7863138b
1 file changed
+2 -5
+2 -5
View File
@@ -165,11 +165,8 @@ struct Atrac {
// require more data
remainFrame = PSP_ATRAC_ALLDATA_IS_ON_MEMORY;
} else {
// This is the correct one
//remainFrame = (first.size - decodePos) / atracBytesPerFrame;
// Try to load all file data immediately
remainFrame = 0;
// Games expect to be told how many frames need to be read.
remainFrame = (first.size - decodePos) / atracBytesPerFrame;
}
return remainFrame;
}