mirror of https://github.com/stella-emu/stella.git
Fix compile errors when certain options are disabled by 'configure'.
This commit is contained in:
parent
eceb647953
commit
e64e0ea844
|
@ -51,10 +51,9 @@ class SoundNull : public Sound
|
||||||
/**
|
/**
|
||||||
Enables/disables the sound subsystem.
|
Enables/disables the sound subsystem.
|
||||||
|
|
||||||
@param enable Either true or false, to enable or disable the sound system
|
@param state True or false, to enable or disable the sound system
|
||||||
@return Whether the sound system was enabled or disabled
|
|
||||||
*/
|
*/
|
||||||
void setEnabled(bool enable) override { }
|
void setEnabled(bool state) override { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the number of channels (mono or stereo sound).
|
Sets the number of channels (mono or stereo sound).
|
||||||
|
@ -93,7 +92,7 @@ class SoundNull : public Sound
|
||||||
/**
|
/**
|
||||||
Reset the sound device.
|
Reset the sound device.
|
||||||
*/
|
*/
|
||||||
void reset() { }
|
void reset() override { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the sound register to a given value.
|
Sets the sound register to a given value.
|
||||||
|
@ -128,7 +127,7 @@ class SoundNull : public Sound
|
||||||
@param out The serializer device to save to.
|
@param out The serializer device to save to.
|
||||||
@return The result of the save. True on success, false on failure.
|
@return The result of the save. True on success, false on failure.
|
||||||
*/
|
*/
|
||||||
bool save(Serializer& out) const
|
bool save(Serializer& out) const override
|
||||||
{
|
{
|
||||||
out.putString("TIASound");
|
out.putString("TIASound");
|
||||||
|
|
||||||
|
@ -147,7 +146,7 @@ class SoundNull : public Sound
|
||||||
@param in The Serializer device to load from.
|
@param in The Serializer device to load from.
|
||||||
@return The result of the load. True on success, false on failure.
|
@return The result of the load. True on success, false on failure.
|
||||||
*/
|
*/
|
||||||
bool load(Serializer& in)
|
bool load(Serializer& in) override
|
||||||
{
|
{
|
||||||
if(in.getString() != "TIASound")
|
if(in.getString() != "TIASound")
|
||||||
return false;
|
return false;
|
||||||
|
@ -167,7 +166,7 @@ class SoundNull : public Sound
|
||||||
|
|
||||||
@return The name of the object
|
@return The name of the object
|
||||||
*/
|
*/
|
||||||
string name() const { return "TIASound"; }
|
string name() const override { return "TIASound"; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Following constructors and assignment operators not supported
|
// Following constructors and assignment operators not supported
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
#include "Settings.hxx"
|
#include "Settings.hxx"
|
||||||
|
#include "System.hxx"
|
||||||
#ifdef DEBUGGER_SUPPORT
|
#ifdef DEBUGGER_SUPPORT
|
||||||
#include "Debugger.hxx"
|
#include "Debugger.hxx"
|
||||||
#include "CartDebug.hxx"
|
#include "CartDebug.hxx"
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||||
//============================================================================
|
//============================================================================
|
||||||
|
|
||||||
|
#include "M6532.hxx"
|
||||||
#include "System.hxx"
|
#include "System.hxx"
|
||||||
#include "CartFE.hxx"
|
#include "CartFE.hxx"
|
||||||
|
|
||||||
|
|
|
@ -39,8 +39,7 @@ M6532::M6532(const Console& console, const Settings& settings)
|
||||||
mySetTimerCycle(0), myLastCycle(0),
|
mySetTimerCycle(0), myLastCycle(0),
|
||||||
myDDRA(0), myDDRB(0), myOutA(0), myOutB(0),
|
myDDRA(0), myDDRB(0), myOutA(0), myOutB(0),
|
||||||
myInterruptFlag(false),
|
myInterruptFlag(false),
|
||||||
myEdgeDetectPositive(false),
|
myEdgeDetectPositive(false)
|
||||||
myRAMAccessBase(nullptr)
|
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -750,17 +750,16 @@ class TIA : public Device
|
||||||
bool myEnableJitter;
|
bool myEnableJitter;
|
||||||
uInt8 myJitterFactor;
|
uInt8 myJitterFactor;
|
||||||
|
|
||||||
|
|
||||||
#ifdef DEBUGGER_SUPPORT
|
#ifdef DEBUGGER_SUPPORT
|
||||||
// The arrays containing information about every byte of TIA
|
// The arrays containing information about every byte of TIA
|
||||||
// indicating whether and how (RW) it is used.
|
// indicating whether and how (RW) it is used.
|
||||||
BytePtr myAccessBase;
|
BytePtr myAccessBase;
|
||||||
// The array used to skip the first two TIA access trackings
|
// The array used to skip the first two TIA access trackings
|
||||||
BytePtr myAccessDelay;
|
BytePtr myAccessDelay;
|
||||||
|
#endif // DEBUGGER_SUPPORT
|
||||||
|
|
||||||
static constexpr uInt16
|
static constexpr uInt16
|
||||||
TIA_SIZE = 0x40, TIA_MASK = TIA_SIZE - 1, TIA_READ_MASK = 0x0f, TIA_BIT = 0x080, TIA_DELAY = 2;
|
TIA_SIZE = 0x40, TIA_MASK = TIA_SIZE - 1, TIA_READ_MASK = 0x0f, TIA_BIT = 0x080, TIA_DELAY = 2;
|
||||||
#endif // DEBUGGER_SUPPORT
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TIA() = delete;
|
TIA() = delete;
|
||||||
|
|
|
@ -384,6 +384,7 @@ void UIDialog::saveConfig()
|
||||||
instance().settings().setValue("exitlauncher",
|
instance().settings().setValue("exitlauncher",
|
||||||
myLauncherExitPopup->getSelectedTag().toString());
|
myLauncherExitPopup->getSelectedTag().toString());
|
||||||
|
|
||||||
|
#ifdef DEBUGGER_SUPPORT
|
||||||
// Debugger size
|
// Debugger size
|
||||||
instance().settings().setValue("dbg.res",
|
instance().settings().setValue("dbg.res",
|
||||||
GUI::Size(myDebuggerWidthSlider->getValue(),
|
GUI::Size(myDebuggerWidthSlider->getValue(),
|
||||||
|
@ -392,6 +393,7 @@ void UIDialog::saveConfig()
|
||||||
// Debugger font style
|
// Debugger font style
|
||||||
instance().settings().setValue("dbg.fontstyle",
|
instance().settings().setValue("dbg.fontstyle",
|
||||||
myDebuggerFontStyle->getSelectedTag().toString());
|
myDebuggerFontStyle->getSelectedTag().toString());
|
||||||
|
#endif
|
||||||
|
|
||||||
// UI palette
|
// UI palette
|
||||||
instance().settings().setValue("uipalette",
|
instance().settings().setValue("uipalette",
|
||||||
|
|
|
@ -55,12 +55,14 @@ class UIDialog : public Dialog
|
||||||
PopUpWidget* myLauncherFontPopup;
|
PopUpWidget* myLauncherFontPopup;
|
||||||
PopUpWidget* myRomViewerPopup;
|
PopUpWidget* myRomViewerPopup;
|
||||||
|
|
||||||
|
#ifdef DEBUGGER_SUPPORT
|
||||||
// Debugger options
|
// Debugger options
|
||||||
SliderWidget* myDebuggerWidthSlider;
|
SliderWidget* myDebuggerWidthSlider;
|
||||||
StaticTextWidget* myDebuggerWidthLabel;
|
StaticTextWidget* myDebuggerWidthLabel;
|
||||||
SliderWidget* myDebuggerHeightSlider;
|
SliderWidget* myDebuggerHeightSlider;
|
||||||
StaticTextWidget* myDebuggerHeightLabel;
|
StaticTextWidget* myDebuggerHeightLabel;
|
||||||
PopUpWidget* myDebuggerFontStyle;
|
PopUpWidget* myDebuggerFontStyle;
|
||||||
|
#endif
|
||||||
|
|
||||||
// Misc options
|
// Misc options
|
||||||
PopUpWidget* myPalettePopup;
|
PopUpWidget* myPalettePopup;
|
||||||
|
|
|
@ -382,7 +382,7 @@ VideoDialog::VideoDialog(OSystem& osystem, DialogContainer& parent,
|
||||||
|
|
||||||
// Disable certain functions when we know they aren't present
|
// Disable certain functions when we know they aren't present
|
||||||
#ifndef WINDOWED_SUPPORT
|
#ifndef WINDOWED_SUPPORT
|
||||||
myFullscreenCheckbox->clearFlags(WIDGET_ENABLED);
|
myFullscreen->clearFlags(WIDGET_ENABLED);
|
||||||
myCenter->clearFlags(WIDGET_ENABLED);
|
myCenter->clearFlags(WIDGET_ENABLED);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue