Skip to content

Commit

Permalink
Removed local calls to CoreComponent::_initialize()
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Aug 1, 2024
1 parent 3eb0e7a commit f29e5ed
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 26 deletions.
2 changes: 1 addition & 1 deletion Emulator/Base/CoreComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public CoreObject, public Serializable, public Suspendable, public Synchronizabl
// Processing state changes
//

public:
private:

virtual void _initialize() { }
virtual void _willReset(bool hard) { }
Expand Down
4 changes: 1 addition & 3 deletions Emulator/Components/Agnus/Blitter/Blitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ Blitter::Blitter(Amiga& ref) : SubComponent(ref)

void
Blitter::_initialize()
{
CoreComponent::_initialize();

{
// Initialize the fill pattern tables
for (isize carryIn = 0; carryIn < 2; carryIn++) {

Expand Down
2 changes: 0 additions & 2 deletions Emulator/Components/Agnus/Sequencer/Sequencer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ Sequencer::Sequencer(Amiga& ref) : SubComponent(ref)
void
Sequencer::_initialize()
{
CoreComponent::_initialize();

initDasEventTable();
}

Expand Down
2 changes: 0 additions & 2 deletions Emulator/Components/CIA/CIA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ CIA::CIA(Amiga& ref, isize objid) : SubComponent(ref, objid)
void
CIA::_initialize()
{
CoreComponent::_initialize();

pa = 0xFF;
pb = 0xFF;
}
Expand Down
4 changes: 1 addition & 3 deletions Emulator/Components/Denise/DeniseDebugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ namespace vamiga {

void
DeniseDebugger::_initialize()
{
CoreComponent::_initialize();

{
std::memset(spriteInfo, 0, sizeof(spriteInfo));
std::memset(latchedSpriteInfo, 0, sizeof(latchedSpriteInfo));
}
Expand Down
2 changes: 0 additions & 2 deletions Emulator/Components/Denise/PixelEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ PixelEngine::_dump(Category category, std::ostream& os) const
void
PixelEngine::_initialize()
{
CoreComponent::_initialize();

// Setup ECS BRDRBLNK color
palette[64] = TEXEL(GpuColor(0x00, 0x00, 0x00).rawValue);

Expand Down
4 changes: 1 addition & 3 deletions Emulator/Components/Memory/Memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,7 @@ Memory::_dump(Category category, std::ostream& os) const

void
Memory::_initialize()
{
CoreComponent::_initialize();

{
if (auto romPath = Emulator::defaults.getRaw("ROM_PATH"); romPath != "") {

debug(CNF_DEBUG, "Trying to load Rom from %s...\n", romPath.c_str());
Expand Down
2 changes: 0 additions & 2 deletions Emulator/Components/Ports/AudioPort.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ AudioPort::_dump(Category category, std::ostream& os) const
void
AudioPort::_initialize()
{
CoreComponent::_initialize();

setSampleRate(44100);
}

Expand Down
2 changes: 0 additions & 2 deletions Emulator/Misc/Recorder/Recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ Recorder::Recorder(Amiga& ref) : SubComponent(ref)
void
Recorder::_initialize()
{
CoreComponent::_initialize();

FFmpeg::init();
}

Expand Down
2 changes: 0 additions & 2 deletions Emulator/Misc/RetroShell/Console.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ namespace vamiga {
void
Console::_initialize()
{
CoreComponent::_initialize();

// Register commands
initCommands(root);

Expand Down
2 changes: 0 additions & 2 deletions Emulator/Peripherals/Drive/FloppyDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ FloppyDrive::operator= (const FloppyDrive& other) {
void
FloppyDrive::_initialize()
{
CoreComponent::_initialize();

string path;

if (objid == 0) path = INITIAL_DF0;
Expand Down
2 changes: 0 additions & 2 deletions Emulator/Peripherals/Drive/HardDrive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,6 @@ HardDrive::init(const std::filesystem::path &path) throws
void
HardDrive::_initialize()
{
CoreComponent::_initialize();

string path;

if (objid == 0) path = INITIAL_HD0;
Expand Down

0 comments on commit f29e5ed

Please sign in to comment.