Fixed some cases of variables being used before initialization
This commit is contained in:
parent
279c395271
commit
886ae6425f
6 changed files with 13 additions and 1 deletions
|
@ -14,6 +14,7 @@ APU::APU(shared_ptr<Console> console)
|
|||
{
|
||||
_nesModel = NesModel::Auto;
|
||||
_apuEnabled = true;
|
||||
_needToRun = false;
|
||||
|
||||
_console = console;
|
||||
_mixer = _console->GetSoundMixer();
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
|
||||
void StreamState(bool saving) override
|
||||
{
|
||||
int32_t unusednextIrqCycle;
|
||||
int32_t unusednextIrqCycle = 0;
|
||||
Stream(unusednextIrqCycle, _previousCycle, _currentStep, _stepMode, _inhibitIRQ, _nesModel, _blockFrameCounterTick, _writeDelayCounter, _newValue);
|
||||
|
||||
if(!saving) {
|
||||
|
|
|
@ -76,6 +76,9 @@ Debugger::Debugger(shared_ptr<Console> console, shared_ptr<CPU> cpu, shared_ptr<
|
|||
_breakOnScanline = -2;
|
||||
_breakSource = BreakSource::Unspecified;
|
||||
|
||||
memset(_hasBreakpoint, 0, sizeof(_hasBreakpoint));
|
||||
_bpDummyCpuRequired = false;
|
||||
|
||||
_preventResume = 0;
|
||||
_stopFlag = false;
|
||||
_suspendCount = 0;
|
||||
|
|
|
@ -353,6 +353,9 @@ protected:
|
|||
_fillModeTile = 0;
|
||||
_verticalSplitScroll = 0;
|
||||
_verticalSplitBank = 0;
|
||||
_verticalSplitEnabled = false;
|
||||
_verticalSplitDelimiterTile = 0;
|
||||
_verticalSplitRightSide = false;
|
||||
_multiplierValue1 = 0;
|
||||
_multiplierValue2 = 0;
|
||||
_chrUpperBits = 0;
|
||||
|
@ -365,12 +368,15 @@ protected:
|
|||
_exAttributeLastNametableFetch = 0;
|
||||
_exAttrSelectedChrBank = 0;
|
||||
|
||||
_irqPending = false;
|
||||
_irqCounterTarget = 0;
|
||||
_irqCounter = 0;
|
||||
_irqEnabled = false;
|
||||
_previousScanline = -1;
|
||||
_ppuInFrame = false;
|
||||
|
||||
_lastVramOperationType = MemoryOperationType::Read;
|
||||
|
||||
_splitInSplitRegion = false;
|
||||
_splitVerticalScroll = 0;
|
||||
_splitTile = 0;
|
||||
|
|
|
@ -21,6 +21,7 @@ public:
|
|||
{
|
||||
_currentOutput = 0;
|
||||
_isMmc5Square = true;
|
||||
Reset(false);
|
||||
}
|
||||
|
||||
int8_t GetOutput()
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
SoundMixer::SoundMixer(shared_ptr<Console> console)
|
||||
{
|
||||
_audioDevice = nullptr;
|
||||
_clockRate = 0;
|
||||
_console = console;
|
||||
_settings = _console->GetSettings();
|
||||
_eqFrequencyGrid.reset(new orfanidis_eq::freq_grid());
|
||||
|
|
Loading…
Add table
Reference in a new issue