mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-03-04 20:27:57 +00:00
Merge pull request #5076 from unknownbrackets/warnings
Fix some warnings
This commit is contained in:
commit
0c2780e632
@ -105,7 +105,7 @@ struct AtracLoopInfo {
|
|||||||
struct Atrac {
|
struct Atrac {
|
||||||
Atrac() : atracID(-1), data_buf(0), decodePos(0), decodeEnd(0), atracChannels(0), atracOutputChannels(2),
|
Atrac() : atracID(-1), data_buf(0), decodePos(0), decodeEnd(0), atracChannels(0), atracOutputChannels(2),
|
||||||
atracBitrate(64), atracBytesPerFrame(0), atracBufSize(0),
|
atracBitrate(64), atracBytesPerFrame(0), atracBufSize(0),
|
||||||
currentSample(0), endSample(0), firstSampleoffset(0), loopinfoNum(0), loopNum(0), codecType(0), failedDecode(false) {
|
currentSample(0), endSample(0), firstSampleoffset(0), loopinfoNum(0), loopNum(0), failedDecode(false), codecType(0) {
|
||||||
memset(&first, 0, sizeof(first));
|
memset(&first, 0, sizeof(first));
|
||||||
memset(&second, 0, sizeof(second));
|
memset(&second, 0, sizeof(second));
|
||||||
#ifdef USE_FFMPEG
|
#ifdef USE_FFMPEG
|
||||||
|
@ -1378,7 +1378,7 @@ u32 sceMpegAtracDecode(u32 mpeg, u32 auAddr, u32 bufferAddr, int init)
|
|||||||
// YCbCr -> RGB color space conversion
|
// YCbCr -> RGB color space conversion
|
||||||
u32 sceMpegAvcCsc(u32 mpeg, u32 sourceAddr, u32 rangeAddr, int frameWidth, u32 destAddr)
|
u32 sceMpegAvcCsc(u32 mpeg, u32 sourceAddr, u32 rangeAddr, int frameWidth, u32 destAddr)
|
||||||
{
|
{
|
||||||
if (!Memory::IsValidAddress(sourceAddr) || !Memory::IsValidAddress(rangeAddr) && !Memory::IsValidAddress(destAddr)) {
|
if (!Memory::IsValidAddress(sourceAddr) || !Memory::IsValidAddress(rangeAddr) || !Memory::IsValidAddress(destAddr)) {
|
||||||
ERROR_LOG(ME, "sceMpegAvcCsc(%08x, %08x, %08x, %i, %08x): invalid addresses", mpeg, sourceAddr, rangeAddr, frameWidth, destAddr);
|
ERROR_LOG(ME, "sceMpegAvcCsc(%08x, %08x, %08x, %i, %08x): invalid addresses", mpeg, sourceAddr, rangeAddr, frameWidth, destAddr);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -728,12 +728,12 @@ ADSREnvelope::ADSREnvelope()
|
|||||||
sustainType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_INCREASE),
|
sustainType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_INCREASE),
|
||||||
sustainLevel(0x100),
|
sustainLevel(0x100),
|
||||||
releaseType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_DECREASE),
|
releaseType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_DECREASE),
|
||||||
|
rate_(0),
|
||||||
|
type_(0),
|
||||||
|
invDuration_(0),
|
||||||
state_(STATE_OFF),
|
state_(STATE_OFF),
|
||||||
steps_(0),
|
steps_(0),
|
||||||
height_(0),
|
height_(0) {
|
||||||
type_(0),
|
|
||||||
rate_(0),
|
|
||||||
invDuration_(0) {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ADSREnvelope::WalkCurve(int type) {
|
void ADSREnvelope::WalkCurve(int type) {
|
||||||
|
@ -52,10 +52,10 @@ namespace MIPSComp {
|
|||||||
};
|
};
|
||||||
|
|
||||||
JitState()
|
JitState()
|
||||||
: prefixSFlag(PREFIX_UNKNOWN),
|
: startDefaultPrefix(true),
|
||||||
|
prefixSFlag(PREFIX_UNKNOWN),
|
||||||
prefixTFlag(PREFIX_UNKNOWN),
|
prefixTFlag(PREFIX_UNKNOWN),
|
||||||
prefixDFlag(PREFIX_UNKNOWN),
|
prefixDFlag(PREFIX_UNKNOWN) {}
|
||||||
startDefaultPrefix(true) {}
|
|
||||||
|
|
||||||
u32 compilerPC;
|
u32 compilerPC;
|
||||||
u32 blockStart;
|
u32 blockStart;
|
||||||
|
@ -69,6 +69,8 @@ static u32 QuickTexHashBasic(const void *checkp, u32 size) {
|
|||||||
"add %1, %1, %2\n"
|
"add %1, %1, %2\n"
|
||||||
"mov r6, #0\n"
|
"mov r6, #0\n"
|
||||||
|
|
||||||
|
".align 2\n"
|
||||||
|
|
||||||
// If we have zero sized input, we'll return garbage. Oh well, shouldn't happen.
|
// If we have zero sized input, we'll return garbage. Oh well, shouldn't happen.
|
||||||
"QuickTexHashBasic_next:\n"
|
"QuickTexHashBasic_next:\n"
|
||||||
"ldmia %2!, {r2-r5}\n"
|
"ldmia %2!, {r2-r5}\n"
|
||||||
@ -79,6 +81,8 @@ static u32 QuickTexHashBasic(const void *checkp, u32 size) {
|
|||||||
"eor r6, r6, r5\n"
|
"eor r6, r6, r5\n"
|
||||||
"blo QuickTexHashBasic_next\n"
|
"blo QuickTexHashBasic_next\n"
|
||||||
|
|
||||||
|
".align 2\n"
|
||||||
|
|
||||||
"QuickTexHashBasic_done:\n"
|
"QuickTexHashBasic_done:\n"
|
||||||
"mov %0, r6\n"
|
"mov %0, r6\n"
|
||||||
|
|
||||||
|
@ -297,11 +297,11 @@ FramebufferManager::FramebufferManager() :
|
|||||||
postShaderProgram_(0),
|
postShaderProgram_(0),
|
||||||
plainColorLoc_(-1),
|
plainColorLoc_(-1),
|
||||||
timeLoc_(-1),
|
timeLoc_(-1),
|
||||||
postShaderAtOutputResolution_(false),
|
|
||||||
resized_(false),
|
|
||||||
textureCache_(0),
|
textureCache_(0),
|
||||||
shaderManager_(0),
|
shaderManager_(0),
|
||||||
usePostShader_(false)
|
usePostShader_(false),
|
||||||
|
postShaderAtOutputResolution_(false),
|
||||||
|
resized_(false)
|
||||||
#ifndef USING_GLES2
|
#ifndef USING_GLES2
|
||||||
,
|
,
|
||||||
pixelBufObj_(0),
|
pixelBufObj_(0),
|
||||||
|
@ -123,8 +123,8 @@ TransformDrawEngine::TransformDrawEngine()
|
|||||||
framebufferManager_(0),
|
framebufferManager_(0),
|
||||||
numDrawCalls(0),
|
numDrawCalls(0),
|
||||||
vertexCountInDrawCalls(0),
|
vertexCountInDrawCalls(0),
|
||||||
uvScale(0),
|
decodeCounter_(0),
|
||||||
decodeCounter_(0) {
|
uvScale(0) {
|
||||||
decimationCounter_ = VERTEXCACHE_DECIMATION_INTERVAL;
|
decimationCounter_ = VERTEXCACHE_DECIMATION_INTERVAL;
|
||||||
// Allocate nicely aligned memory. Maybe graphics drivers will
|
// Allocate nicely aligned memory. Maybe graphics drivers will
|
||||||
// appreciate it.
|
// appreciate it.
|
||||||
|
@ -45,8 +45,9 @@ enum GameRegion {
|
|||||||
class GameInfo {
|
class GameInfo {
|
||||||
public:
|
public:
|
||||||
GameInfo()
|
GameInfo()
|
||||||
: fileType(FILETYPE_UNKNOWN), paramSFOLoaded(false), iconTexture(NULL), pic0Texture(NULL), pic1Texture(NULL),
|
: disc_total(0), disc_number(0), region(-1), fileType(FILETYPE_UNKNOWN), paramSFOLoaded(false),
|
||||||
wantBG(false), gameSize(0), saveDataSize(0), installDataSize(0), disc_total(0), disc_number(0), region(-1) {}
|
iconTexture(NULL), pic0Texture(NULL), pic1Texture(NULL), wantBG(false),
|
||||||
|
gameSize(0), saveDataSize(0), installDataSize(0) {}
|
||||||
|
|
||||||
bool DeleteGame(); // Better be sure what you're doing when calling this.
|
bool DeleteGame(); // Better be sure what you're doing when calling this.
|
||||||
bool DeleteAllSaveData();
|
bool DeleteAllSaveData();
|
||||||
|
@ -15,7 +15,7 @@ const std::string storeBaseUrl = "http://store.ppsspp.org/";
|
|||||||
class ProductItemView : public UI::Choice {
|
class ProductItemView : public UI::Choice {
|
||||||
public:
|
public:
|
||||||
ProductItemView(const StoreEntry &entry, UI::LayoutParams *layoutParams = 0)
|
ProductItemView(const StoreEntry &entry, UI::LayoutParams *layoutParams = 0)
|
||||||
: entry_(entry), UI::Choice(entry.name, layoutParams) {}
|
: UI::Choice(entry.name, layoutParams), entry_(entry) {}
|
||||||
|
|
||||||
virtual void GetContentDimensions(const UIContext &dc, float &w, float &h) const {
|
virtual void GetContentDimensions(const UIContext &dc, float &w, float &h) const {
|
||||||
w = 300;
|
w = 300;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user