More conversion to brace syntax.

This commit is contained in:
Stephen Anthony 2020-12-20 18:14:28 -03:30
parent 60c991e171
commit 11241b9871
44 changed files with 83 additions and 87 deletions

View File

@ -25,7 +25,7 @@ AtariVox::AtariVox(Jack jack, const Event& event, const System& system,
const string& portname, const FilesystemNode& eepromfile, const string& portname, const FilesystemNode& eepromfile,
const onMessageCallback& callback) const onMessageCallback& callback)
: SaveKey(jack, event, system, eepromfile, callback, Controller::Type::AtariVox), : SaveKey(jack, event, system, eepromfile, callback, Controller::Type::AtariVox),
mySerialPort(MediaFactory::createSerialPort()) mySerialPort{MediaFactory::createSerialPort()}
{ {
if(mySerialPort->openPort(portname)) if(mySerialPort->openPort(portname))
{ {

View File

@ -28,7 +28,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Cartridge::Cartridge(const Settings& settings, const string& md5) Cartridge::Cartridge(const Settings& settings, const string& md5)
: mySettings(settings) : mySettings{settings}
{ {
auto to_uInt32 = [](const string& s, uInt32 pos) { auto to_uInt32 = [](const string& s, uInt32 pos) {
return uInt32(std::stoul(s.substr(pos, 8), nullptr, 16)); return uInt32(std::stoul(s.substr(pos, 8), nullptr, 16));

View File

@ -66,7 +66,6 @@ class Cartridge3F : public CartridgeEnhanced
*/ */
void install(System& system) override; void install(System& system) override;
/** /**
Get a descriptor for the device name (used in error checking). Get a descriptor for the device name (used in error checking).

View File

@ -24,8 +24,8 @@
Cartridge4A50::Cartridge4A50(const ByteBuffer& image, size_t size, Cartridge4A50::Cartridge4A50(const ByteBuffer& image, size_t size,
const string& md5, const Settings& settings) const string& md5, const Settings& settings)
: Cartridge(settings, md5), : Cartridge(settings, md5),
myImage(make_unique<uInt8[]>(128_KB)), myImage{make_unique<uInt8[]>(128_KB)},
mySize(size) mySize{size}
{ {
// Copy the ROM image into my buffer // Copy the ROM image into my buffer
// Supported file sizes are 32/64/128K, which are duplicated if necessary // Supported file sizes are 32/64/128K, which are duplicated if necessary

View File

@ -24,7 +24,7 @@
CartridgeAR::CartridgeAR(const ByteBuffer& image, size_t size, CartridgeAR::CartridgeAR(const ByteBuffer& image, size_t size,
const string& md5, const Settings& settings) const string& md5, const Settings& settings)
: Cartridge(settings, md5), : Cartridge(settings, md5),
mySize(std::max<size_t>(size, 8448)) mySize{std::max<size_t>(size, 8448)}
{ {
// Create a load image buffer and copy the given image // Create a load image buffer and copy the given image
myLoadImages = make_unique<uInt8[]>(mySize); myLoadImages = make_unique<uInt8[]>(mySize);

View File

@ -44,7 +44,7 @@
CartridgeBUS::CartridgeBUS(const ByteBuffer& image, size_t size, CartridgeBUS::CartridgeBUS(const ByteBuffer& image, size_t size,
const string& md5, const Settings& settings) const string& md5, const Settings& settings)
: Cartridge(settings, md5), : Cartridge(settings, md5),
myImage(make_unique<uInt8[]>(32_KB)) myImage{make_unique<uInt8[]>(32_KB)}
{ {
// Copy the ROM image into my buffer // Copy the ROM image into my buffer
std::copy_n(image.get(), std::min(32_KB, size), myImage.get()); std::copy_n(image.get(), std::min(32_KB, size), myImage.get());
@ -71,8 +71,8 @@ CartridgeBUS::CartridgeBUS(const ByteBuffer& image, size_t size,
0x00000800, 0x00000800,
0x00000808, 0x00000808,
0x40001FDC, 0x40001FDC,
devSettings ? settings.getBool("dev.thumb.trapfatal") : false, devSettings ? settings.getBool("dev.thumb.trapfatal") : false,
Thumbulator::ConfigureFor::BUS, Thumbulator::ConfigureFor::BUS,
this); this);
setInitialState(); setInitialState();

View File

@ -66,7 +66,7 @@ namespace {
CartridgeCDF::CartridgeCDF(const ByteBuffer& image, size_t size, CartridgeCDF::CartridgeCDF(const ByteBuffer& image, size_t size,
const string& md5, const Settings& settings) const string& md5, const Settings& settings)
: Cartridge(settings, md5), : Cartridge(settings, md5),
myImage(make_unique<uInt8[]>(512_KB)) myImage{make_unique<uInt8[]>(512_KB)}
{ {
// Copy the ROM image into my buffer // Copy the ROM image into my buffer
std::fill_n(myImage.get(), 512_KB, 0); std::fill_n(myImage.get(), 512_KB, 0);

View File

@ -24,7 +24,7 @@
CartridgeCM::CartridgeCM(const ByteBuffer& image, size_t size, CartridgeCM::CartridgeCM(const ByteBuffer& image, size_t size,
const string& md5, const Settings& settings) const string& md5, const Settings& settings)
: Cartridge(settings, md5), : Cartridge(settings, md5),
myImage(make_unique<uInt8[]>(16_KB)) myImage{make_unique<uInt8[]>(16_KB)}
{ {
// Copy the ROM image into my buffer // Copy the ROM image into my buffer
std::copy_n(image.get(), std::min(16_KB, size), myImage.get()); std::copy_n(image.get(), std::min(16_KB, size), myImage.get());

View File

@ -25,7 +25,7 @@
CartridgeCTY::CartridgeCTY(const ByteBuffer& image, size_t size, CartridgeCTY::CartridgeCTY(const ByteBuffer& image, size_t size,
const string& md5, const Settings& settings) const string& md5, const Settings& settings)
: Cartridge(settings, md5), : Cartridge(settings, md5),
myImage(make_unique<uInt8[]>(32_KB)) myImage{make_unique<uInt8[]>(32_KB)}
{ {
// Copy the ROM image into my buffer // Copy the ROM image into my buffer
std::copy_n(image.get(), std::min(32_KB, size), myImage.get()); std::copy_n(image.get(), std::min(32_KB, size), myImage.get());

View File

@ -29,8 +29,8 @@
CartridgeDPCPlus::CartridgeDPCPlus(const ByteBuffer& image, size_t size, CartridgeDPCPlus::CartridgeDPCPlus(const ByteBuffer& image, size_t size,
const string& md5, const Settings& settings) const string& md5, const Settings& settings)
: Cartridge(settings, md5), : Cartridge(settings, md5),
myImage(make_unique<uInt8[]>(32_KB)), myImage{make_unique<uInt8[]>(32_KB)},
mySize(std::min(size, 32_KB)) mySize{std::min(size, 32_KB)}
{ {
// Image is always 32K, but in the case of ROM < 32K, the image is // Image is always 32K, but in the case of ROM < 32K, the image is
// copied to the end of the buffer // copied to the end of the buffer

View File

@ -22,7 +22,7 @@
CartridgeMNetwork::CartridgeMNetwork(const ByteBuffer& image, size_t size, CartridgeMNetwork::CartridgeMNetwork(const ByteBuffer& image, size_t size,
const string& md5, const Settings& settings) const string& md5, const Settings& settings)
: Cartridge(settings, md5), : Cartridge(settings, md5),
mySize(size) mySize{size}
{ {
} }

View File

@ -23,7 +23,7 @@ CartridgeUA::CartridgeUA(const ByteBuffer& image, size_t size,
const string& md5, const Settings& settings, const string& md5, const Settings& settings,
bool swapHotspots) bool swapHotspots)
: CartridgeEnhanced(image, size, md5, settings, 8_KB), : CartridgeEnhanced(image, size, md5, settings, 8_KB),
mySwappedHotspots(swapHotspots) mySwappedHotspots{swapHotspots}
{ {
} }

View File

@ -168,7 +168,7 @@ class CartridgeWD : public CartridgeEnhanced
// The arrangement of banks to use on each hotspot read // The arrangement of banks to use on each hotspot read
struct BankOrg { struct BankOrg {
uInt8 zero, one, two, three; uInt8 zero{0}, one{0}, two{0}, three{0};
}; };
static const std::array<BankOrg, 8> ourBankOrg; static const std::array<BankOrg, 8> ourBankOrg;

View File

@ -23,8 +23,8 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CompuMate::CompuMate(const Console& console, const Event& event, CompuMate::CompuMate(const Console& console, const Event& event,
const System& system) const System& system)
: myConsole(console), : myConsole{console},
myEvent(event) myEvent{event}
{ {
// These controller pointers will be retrieved by the Console, which will // These controller pointers will be retrieved by the Console, which will
// also take ownership of them // also take ownership of them

View File

@ -86,7 +86,7 @@ class CompuMate
CMControl(class CompuMate& handler, Controller::Jack jack, const Event& event, CMControl(class CompuMate& handler, Controller::Jack jack, const Event& event,
const System& system) const System& system)
: Controller(jack, event, system, Controller::Type::CompuMate), : Controller(jack, event, system, Controller::Type::CompuMate),
myHandler(handler) { } myHandler{handler} { }
~CMControl() override = default; ~CMControl() override = default;
public: public:

View File

@ -116,11 +116,11 @@ namespace {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Console::Console(OSystem& osystem, unique_ptr<Cartridge>& cart, Console::Console(OSystem& osystem, unique_ptr<Cartridge>& cart,
const Properties& props, AudioSettings& audioSettings) const Properties& props, AudioSettings& audioSettings)
: myOSystem(osystem), : myOSystem{osystem},
myEvent(osystem.eventHandler().event()), myEvent{osystem.eventHandler().event()},
myProperties(props), myProperties{props},
myCart(std::move(cart)), myCart{std::move(cart)},
myAudioSettings(audioSettings) myAudioSettings{audioSettings}
{ {
// Create subsystems for the console // Create subsystems for the console
my6502 = make_unique<M6502>(myOSystem.settings()); my6502 = make_unique<M6502>(myOSystem.settings());

View File

@ -74,14 +74,9 @@ class Console : public Serializable, public ConsoleIO
*/ */
Console(OSystem& osystem, unique_ptr<Cartridge>& cart, Console(OSystem& osystem, unique_ptr<Cartridge>& cart,
const Properties& props, AudioSettings& audioSettings); const Properties& props, AudioSettings& audioSettings);
/**
Destructor
*/
~Console() override; ~Console() override;
public: public:
/** /**
Sets the left and right controllers for the console. Sets the left and right controllers for the console.
*/ */

View File

@ -23,10 +23,10 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Controller::Controller(Jack jack, const Event& event, const System& system, Controller::Controller(Jack jack, const Event& event, const System& system,
Type type) Type type)
: myJack(jack), : myJack{jack},
myEvent(event), myEvent{event},
mySystem(system), mySystem{system},
myType(type) myType{type}
{ {
} }

View File

@ -29,9 +29,9 @@ namespace {
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
EmulationTiming::EmulationTiming(FrameLayout frameLayout, ConsoleTiming consoleTiming) : EmulationTiming::EmulationTiming(FrameLayout frameLayout, ConsoleTiming consoleTiming)
myFrameLayout(frameLayout), : myFrameLayout{frameLayout},
myConsoleTiming(consoleTiming) myConsoleTiming{consoleTiming}
{ {
recalculate(); recalculate();
} }

View File

@ -71,7 +71,7 @@ using namespace std::placeholders;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
EventHandler::EventHandler(OSystem& osystem) EventHandler::EventHandler(OSystem& osystem)
: myOSystem(osystem) : myOSystem{osystem}
{ {
} }

View File

@ -20,7 +20,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FilesystemNode::FilesystemNode(const AbstractFSNodePtr& realNode) FilesystemNode::FilesystemNode(const AbstractFSNodePtr& realNode)
: _realNode(realNode) : _realNode{realNode}
{ {
} }

View File

@ -60,7 +60,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FrameBuffer::FrameBuffer(OSystem& osystem) FrameBuffer::FrameBuffer(OSystem& osystem)
: myOSystem(osystem) : myOSystem{osystem}
{ {
} }

View File

@ -24,7 +24,7 @@
KidVid::KidVid(Jack jack, const Event& event, const System& system, KidVid::KidVid(Jack jack, const Event& event, const System& system,
const string& romMd5) const string& romMd5)
: Controller(jack, event, system, Controller::Type::KidVid), : Controller(jack, event, system, Controller::Type::KidVid),
myEnabled(myJack == Jack::Right) myEnabled{myJack == Jack::Right}
{ {
// Right now, there are only two games that use the KidVid // Right now, there are only two games that use the KidVid
if(romMd5 == "ee6665683ebdb539e89ba620981cb0f6") if(romMd5 == "ee6665683ebdb539e89ba620981cb0f6")

View File

@ -29,7 +29,7 @@
Lightgun::Lightgun(Jack jack, const Event& event, const System& system, Lightgun::Lightgun(Jack jack, const Event& event, const System& system,
const string& romMd5, const FrameBuffer& frameBuffer) const string& romMd5, const FrameBuffer& frameBuffer)
: Controller(jack, event, system, Controller::Type::Lightgun), : Controller(jack, event, system, Controller::Type::Lightgun),
myFrameBuffer(frameBuffer) myFrameBuffer{frameBuffer}
{ {
// Right now, there are only three games and a test ROM that use the light gun // Right now, there are only three games and a test ROM that use the light gun
if (romMd5 == "8da51e0c4b6b46f7619425119c7d018e" || if (romMd5 == "8da51e0c4b6b46f7619425119c7d018e" ||

View File

@ -47,7 +47,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M6502::M6502(const Settings& settings) M6502::M6502(const Settings& settings)
: mySettings(settings) : mySettings{settings}
{ {
} }

View File

@ -27,8 +27,8 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
M6532::M6532(const ConsoleIO& console, const Settings& settings) M6532::M6532(const ConsoleIO& console, const Settings& settings)
: myConsole(console), : myConsole{console},
mySettings(settings) mySettings{settings}
{ {
} }

View File

@ -45,9 +45,9 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MT24LC256::MT24LC256(const FilesystemNode& eepromfile, const System& system, MT24LC256::MT24LC256(const FilesystemNode& eepromfile, const System& system,
const Controller::onMessageCallback& callback) const Controller::onMessageCallback& callback)
: mySystem(system), : mySystem{system},
myCallback(callback), myCallback{callback},
myDataFile(eepromfile) myDataFile{eepromfile}
{ {
// Load the data from an external file (if it exists) // Load the data from an external file (if it exists)
bool fileValid = false; bool fileValid = false;

View File

@ -62,7 +62,6 @@ class Paddles : public Controller
static constexpr int MIN_MOUSE_RANGE = 1; static constexpr int MIN_MOUSE_RANGE = 1;
static constexpr int MAX_MOUSE_RANGE = 100; static constexpr int MAX_MOUSE_RANGE = 100;
/** /**
Update the entire digital and analog pin state according to the Update the entire digital and analog pin state according to the
events currently set. events currently set.

View File

@ -29,7 +29,7 @@ PointingDevice::PointingDevice(Jack jack, const Event& event,
const System& system, Controller::Type type, const System& system, Controller::Type type,
float sensitivity) float sensitivity)
: Controller(jack, event, system, type), : Controller(jack, event, system, type),
mySensitivity(sensitivity) mySensitivity{sensitivity}
{ {
// The code in ::read() is set up to always return IOPortA values in // The code in ::read() is set up to always return IOPortA values in
// the lower 4 bits data value // the lower 4 bits data value

View File

@ -56,7 +56,7 @@ namespace {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ProfilingRunner::ProfilingRunner(int argc, char* argv[]) ProfilingRunner::ProfilingRunner(int argc, char* argv[])
: profilingRuns(std::max(argc - 2, 0)) : profilingRuns{std::max<size_t>(argc - 2, 0)}
{ {
for (int i = 2; i < argc; i++) { for (int i = 2; i < argc; i++) {
ProfilingRun& run(profilingRuns[i-2]); ProfilingRun& run(profilingRuns[i-2]);

View File

@ -30,11 +30,12 @@
#include "QuadTari.hxx" #include "QuadTari.hxx"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
QuadTari::QuadTari(Jack jack, const OSystem& osystem, const System& system, const Properties& properties) QuadTari::QuadTari(Jack jack, const OSystem& osystem, const System& system,
const Properties& properties)
: Controller(jack, osystem.eventHandler().event(), system, : Controller(jack, osystem.eventHandler().event(), system,
Controller::Type::QuadTari), Controller::Type::QuadTari),
myOSystem(osystem), myOSystem{osystem},
myProperties(properties) myProperties{properties}
{ {
Controller::Type firstType = Controller::Type::Joystick, Controller::Type firstType = Controller::Type::Joystick,
secondType = Controller::Type::Joystick; secondType = Controller::Type::Joystick;

View File

@ -25,7 +25,7 @@ SaveKey::SaveKey(Jack jack, const Event& event, const System& system,
const FilesystemNode& eepromfile, const onMessageCallback& callback, const FilesystemNode& eepromfile, const onMessageCallback& callback,
Type type) Type type)
: Controller(jack, event, system, type), : Controller(jack, event, system, type),
myEEPROM(make_unique<MT24LC256>(eepromfile, system, callback)) myEEPROM{make_unique<MT24LC256>(eepromfile, system, callback)}
{ {
setPin(DigitalPin::One, true); setPin(DigitalPin::One, true);
setPin(DigitalPin::Two, true); setPin(DigitalPin::Two, true);

View File

@ -33,7 +33,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Settings::Settings() Settings::Settings()
: myRespository(make_shared<KeyValueRepositoryNoop>()) : myRespository{make_shared<KeyValueRepositoryNoop>()}
{ {
// If no version is recorded with the persisted settings, we set it to zero // If no version is recorded with the persisted settings, we set it to zero
setPermanent(SETTINGS_VERSION_KEY, 0); setPermanent(SETTINGS_VERSION_KEY, 0);

View File

@ -23,7 +23,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Switches::Switches(const Event& event, const Properties& properties, Switches::Switches(const Event& event, const Properties& properties,
const Settings& settings) const Settings& settings)
: myEvent(event) : myEvent{event}
{ {
if(properties.get(PropType::Console_RightDiff) == "B") if(properties.get(PropType::Console_RightDiff) == "B")
{ {

View File

@ -29,11 +29,11 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
System::System(Random& random, M6502& m6502, M6532& m6532, System::System(Random& random, M6502& m6502, M6532& m6532,
TIA& mTIA, Cartridge& mCart) TIA& mTIA, Cartridge& mCart)
: myRandom(random), : myRandom{random},
myM6502(m6502), myM6502{m6502},
myM6532(m6532), myM6532{m6532},
myTIA(mTIA), myTIA{mTIA},
myCart(mCart) myCart{mCart}
{ {
// Initialize page access table // Initialize page access table
PageAccess access(&myNullDevice, System::PageAccessType::READ); PageAccess access(&myNullDevice, System::PageAccessType::READ);

View File

@ -293,7 +293,7 @@ class System : public Serializable
// Constructors // Constructors
PageAccess() = default; PageAccess() = default;
PageAccess(Device* dev, PageAccessType access) : device(dev), type(access) { } PageAccess(Device* dev, PageAccessType access) : device{dev}, type{access} { }
}; };
/** /**

View File

@ -46,8 +46,8 @@ namespace {
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TIASurface::TIASurface(OSystem& system) TIASurface::TIASurface(OSystem& system)
: myOSystem(system), : myOSystem{system},
myFB(system.frameBuffer()) myFB{system.frameBuffer()}
{ {
// Load NTSC filter settings // Load NTSC filter settings
myNTSCFilter.loadConfig(myOSystem.settings()); myNTSCFilter.loadConfig(myOSystem.settings());

View File

@ -57,15 +57,15 @@ Thumbulator::Thumbulator(const uInt16* rom_ptr, uInt16* ram_ptr, uInt32 rom_size
const uInt32 c_base, const uInt32 c_start, const uInt32 c_stack, const uInt32 c_base, const uInt32 c_start, const uInt32 c_stack,
bool traponfatal, Thumbulator::ConfigureFor configurefor, bool traponfatal, Thumbulator::ConfigureFor configurefor,
Cartridge* cartridge) Cartridge* cartridge)
: rom(rom_ptr), : rom{rom_ptr},
romSize(rom_size), romSize{rom_size},
cBase(c_base), cBase{c_base},
cStart(c_start), cStart{c_start},
cStack(c_stack), cStack{c_stack},
decodedRom(make_unique<Op[]>(romSize / 2)), // NOLINT decodedRom{make_unique<Op[]>(romSize / 2)}, // NOLINT
ram(ram_ptr), ram{ram_ptr},
configuration(configurefor), configuration{configurefor},
myCartridge(cartridge) myCartridge{cartridge}
{ {
for(uInt32 i = 0; i < romSize / 2; ++i) for(uInt32 i = 0; i < romSize / 2; ++i)
decodedRom[i] = decodeInstructionWord(CONV_RAMROM(rom[i])); decodedRom[i] = decodeInstructionWord(CONV_RAMROM(rom[i]));

View File

@ -20,7 +20,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ball::Ball(uInt32 collisionMask) Ball::Ball(uInt32 collisionMask)
: myCollisionMaskDisabled(collisionMask) : myCollisionMaskDisabled{collisionMask}
{ {
} }

View File

@ -21,7 +21,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Missile::Missile(uInt32 collisionMask) Missile::Missile(uInt32 collisionMask)
: myCollisionMaskDisabled(collisionMask) : myCollisionMaskDisabled{collisionMask}
{ {
} }

View File

@ -21,7 +21,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Player::Player(uInt32 collisionMask) Player::Player(uInt32 collisionMask)
: myCollisionMaskDisabled(collisionMask) : myCollisionMaskDisabled{collisionMask}
{ {
} }

View File

@ -20,7 +20,7 @@
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Playfield::Playfield(uInt32 collisionMask) Playfield::Playfield(uInt32 collisionMask)
: myCollisionMaskDisabled(collisionMask) : myCollisionMaskDisabled{collisionMask}
{ {
} }

View File

@ -66,15 +66,15 @@ static constexpr uInt8 resxLateHblankThreshold = TIAConstants::H_CYCLES - 3;
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
TIA::TIA(ConsoleIO& console, const ConsoleTimingProvider& timingProvider, TIA::TIA(ConsoleIO& console, const ConsoleTimingProvider& timingProvider,
Settings& settings) Settings& settings)
: myConsole(console), : myConsole{console},
myTimingProvider(timingProvider), myTimingProvider{timingProvider},
mySettings(settings), mySettings{settings},
myPlayfield(~CollisionMask::playfield & 0x7FFF), myPlayfield{~CollisionMask::playfield & 0x7FFF},
myMissile0(~CollisionMask::missile0 & 0x7FFF), myMissile0{~CollisionMask::missile0 & 0x7FFF},
myMissile1(~CollisionMask::missile1 & 0x7FFF), myMissile1{~CollisionMask::missile1 & 0x7FFF},
myPlayer0(~CollisionMask::player0 & 0x7FFF), myPlayer0{~CollisionMask::player0 & 0x7FFF},
myPlayer1(~CollisionMask::player1 & 0x7FFF), myPlayer1{~CollisionMask::player1 & 0x7FFF},
myBall(~CollisionMask::ball & 0x7FFF) myBall{~CollisionMask::ball & 0x7FFF}
{ {
myBackground.setTIA(this); myBackground.setTIA(this);
myPlayfield.setTIA(this); myPlayfield.setTIA(this);

View File

@ -435,6 +435,7 @@ void LauncherDialog::updateUI()
loadRomInfo(); loadRomInfo();
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
size_t LauncherDialog::matchWithJoker(const string& str, const string& pattern) size_t LauncherDialog::matchWithJoker(const string& str, const string& pattern)
{ {
if(str.length() >= pattern.length()) if(str.length() >= pattern.length())
@ -460,6 +461,7 @@ size_t LauncherDialog::matchWithJoker(const string& str, const string& pattern)
return string::npos; return string::npos;
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bool LauncherDialog::matchWithWildcards(const string& str, const string& pattern) bool LauncherDialog::matchWithWildcards(const string& str, const string& pattern)
{ {
string pat = pattern; string pat = pattern;