mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Fix some initialization order warnings.
This commit is contained in:
parent
a651e09de7
commit
79864a5ee0
@ -105,7 +105,7 @@ struct AtracLoopInfo {
|
||||
struct Atrac {
|
||||
Atrac() : atracID(-1), data_buf(0), decodePos(0), decodeEnd(0), atracChannels(0), atracOutputChannels(2),
|
||||
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(&second, 0, sizeof(second));
|
||||
#ifdef USE_FFMPEG
|
||||
|
@ -728,12 +728,12 @@ ADSREnvelope::ADSREnvelope()
|
||||
sustainType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_INCREASE),
|
||||
sustainLevel(0x100),
|
||||
releaseType(PSP_SAS_ADSR_CURVE_MODE_LINEAR_DECREASE),
|
||||
rate_(0),
|
||||
type_(0),
|
||||
invDuration_(0),
|
||||
state_(STATE_OFF),
|
||||
steps_(0),
|
||||
height_(0),
|
||||
type_(0),
|
||||
rate_(0),
|
||||
invDuration_(0) {
|
||||
height_(0) {
|
||||
}
|
||||
|
||||
void ADSREnvelope::WalkCurve(int type) {
|
||||
|
@ -52,10 +52,10 @@ namespace MIPSComp {
|
||||
};
|
||||
|
||||
JitState()
|
||||
: prefixSFlag(PREFIX_UNKNOWN),
|
||||
: startDefaultPrefix(true),
|
||||
prefixSFlag(PREFIX_UNKNOWN),
|
||||
prefixTFlag(PREFIX_UNKNOWN),
|
||||
prefixDFlag(PREFIX_UNKNOWN),
|
||||
startDefaultPrefix(true) {}
|
||||
prefixDFlag(PREFIX_UNKNOWN) {}
|
||||
|
||||
u32 compilerPC;
|
||||
u32 blockStart;
|
||||
|
@ -297,11 +297,11 @@ FramebufferManager::FramebufferManager() :
|
||||
postShaderProgram_(0),
|
||||
plainColorLoc_(-1),
|
||||
timeLoc_(-1),
|
||||
postShaderAtOutputResolution_(false),
|
||||
resized_(false),
|
||||
textureCache_(0),
|
||||
shaderManager_(0),
|
||||
usePostShader_(false)
|
||||
usePostShader_(false),
|
||||
postShaderAtOutputResolution_(false),
|
||||
resized_(false)
|
||||
#ifndef USING_GLES2
|
||||
,
|
||||
pixelBufObj_(0),
|
||||
|
@ -123,8 +123,8 @@ TransformDrawEngine::TransformDrawEngine()
|
||||
framebufferManager_(0),
|
||||
numDrawCalls(0),
|
||||
vertexCountInDrawCalls(0),
|
||||
uvScale(0),
|
||||
decodeCounter_(0) {
|
||||
decodeCounter_(0),
|
||||
uvScale(0) {
|
||||
decimationCounter_ = VERTEXCACHE_DECIMATION_INTERVAL;
|
||||
// Allocate nicely aligned memory. Maybe graphics drivers will
|
||||
// appreciate it.
|
||||
|
@ -45,8 +45,9 @@ enum GameRegion {
|
||||
class GameInfo {
|
||||
public:
|
||||
GameInfo()
|
||||
: fileType(FILETYPE_UNKNOWN), paramSFOLoaded(false), iconTexture(NULL), pic0Texture(NULL), pic1Texture(NULL),
|
||||
wantBG(false), gameSize(0), saveDataSize(0), installDataSize(0), disc_total(0), disc_number(0), region(-1) {}
|
||||
: disc_total(0), disc_number(0), region(-1), fileType(FILETYPE_UNKNOWN), paramSFOLoaded(false),
|
||||
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 DeleteAllSaveData();
|
||||
|
@ -15,7 +15,7 @@ const std::string storeBaseUrl = "http://store.ppsspp.org/";
|
||||
class ProductItemView : public UI::Choice {
|
||||
public:
|
||||
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 {
|
||||
w = 300;
|
||||
|
Loading…
Reference in New Issue
Block a user