mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Merge pull request #15836 from unknownbrackets/headless
Correct a couple more Valgrind warnings in HLE
This commit is contained in:
commit
4d096925fd
@ -619,10 +619,12 @@ struct Atrac {
|
||||
|
||||
void ConsumeFrame() {
|
||||
bufferPos_ += bytesPerFrame_;
|
||||
if (bufferValidBytes_ > bytesPerFrame_) {
|
||||
bufferValidBytes_ -= bytesPerFrame_;
|
||||
} else {
|
||||
bufferValidBytes_ = 0;
|
||||
if ((bufferState_ & ATRAC_STATUS_STREAMED_MASK) == ATRAC_STATUS_STREAMED_MASK) {
|
||||
if (bufferValidBytes_ > bytesPerFrame_) {
|
||||
bufferValidBytes_ -= bytesPerFrame_;
|
||||
} else {
|
||||
bufferValidBytes_ = 0;
|
||||
}
|
||||
}
|
||||
if (bufferPos_ >= StreamBufferEnd()) {
|
||||
// Wrap around... theoretically, this should only happen at exactly StreamBufferEnd.
|
||||
|
@ -486,8 +486,7 @@ public:
|
||||
// For save states only.
|
||||
}
|
||||
|
||||
FontLib(u32 paramPtr, u32 errorCodePtr) : fontHRes_(128.0f), fontVRes_(128.0f), altCharCode_(0x5F), charInfoBitmapAddress_(0) {
|
||||
nfl_ = 0;
|
||||
FontLib(u32 paramPtr, u32 errorCodePtr) {
|
||||
Memory::ReadStruct(paramPtr, ¶ms_);
|
||||
if (params_.numFonts > 9) {
|
||||
params_.numFonts = 9;
|
||||
@ -753,14 +752,14 @@ private:
|
||||
std::vector<u32> fontRefCount_;
|
||||
|
||||
FontNewLibParams params_;
|
||||
float fontHRes_;
|
||||
float fontVRes_;
|
||||
int fileFontHandle_;
|
||||
int handle_;
|
||||
int altCharCode_;
|
||||
float fontHRes_ = 128.0f;
|
||||
float fontVRes_ = 128.0f;
|
||||
int fileFontHandle_ = -1;
|
||||
int handle_ = -1;
|
||||
int altCharCode_ = 0x5F;
|
||||
std::vector<u32> openAllocatedAddresses_;
|
||||
u32 charInfoBitmapAddress_;
|
||||
PSPPointer<NativeFontLib> nfl_;
|
||||
u32 charInfoBitmapAddress_ = 0;
|
||||
PSPPointer<NativeFontLib> nfl_{};
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(FontLib);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user