Skip to content

Commit

Permalink
Removed Aliases.h
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkwhoffmann committed Jun 4, 2024
1 parent cc5eafa commit 15d6d02
Show file tree
Hide file tree
Showing 63 changed files with 141 additions and 120 deletions.
49 changes: 0 additions & 49 deletions Emulator/Base/Aliases.h

This file was deleted.

1 change: 0 additions & 1 deletion Emulator/Base/CmdQueueTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "JoystickTypes.h"
#include "Reflection.h"
#include "Option.h"
Expand Down
2 changes: 1 addition & 1 deletion Emulator/Base/Colors.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#pragma once

#include "Aliases.h"
#include "Types.h"

namespace vc64 {

Expand Down
2 changes: 1 addition & 1 deletion Emulator/Base/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
///
#pragma once

#include "Aliases.h"
#include "Types.h"

/** VirtualC64 project namespace
*/
Expand Down
1 change: 1 addition & 0 deletions Emulator/Base/Error.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include "config.h"
#include "Error.h"
#include "Macros.h"

namespace vc64 {

Expand Down
1 change: 0 additions & 1 deletion Emulator/Base/ErrorTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
1 change: 0 additions & 1 deletion Emulator/Base/MsgQueueTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
1 change: 0 additions & 1 deletion Emulator/Base/OptionTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
1 change: 0 additions & 1 deletion Emulator/Base/ThreadTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
1 change: 0 additions & 1 deletion Emulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ target_include_directories(vc64Core PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

# Add sub directories
add_subdirectory(Base)
add_subdirectory(Cartridges)
add_subdirectory(Components)
add_subdirectory(FileSystems)
add_subdirectory(Media)
Expand Down
2 changes: 1 addition & 1 deletion Emulator/Components/C64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ C64::scheduleNextSNPEvent()
auto delay = emulator.get(OPT_EMU_SNAPSHOT_DELAY);

if (snapshots) {
scheduleRel<SLOT_SNP>(SEC(double(delay)), SNP_TAKE);
scheduleRel<SLOT_SNP>(C64::sec(double(delay)), SNP_TAKE);
} else {
cancel<SLOT_SNP>();
}
Expand Down
12 changes: 12 additions & 0 deletions Emulator/Components/C64.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,18 @@ class C64 final : public CoreComponent, public Inspectable<C64Info> {
void initialize();


//
// Static methods
//

public:

// Converts a time span to an (approximate) cycle count
static Cycle usec(isize delay) { return Cycle(delay * 1LL); }
static Cycle msec(isize delay) { return Cycle(delay * 1000LL); }
static Cycle sec(double delay) { return (Cycle)(delay * 1000000LL); }


//
// Methods from CoreComponent
//
Expand Down
8 changes: 7 additions & 1 deletion Emulator/Components/C64Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,17 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {

//
// Type aliases
//

typedef i64 Cycle;


//
// Enumerations
//
Expand Down
2 changes: 1 addition & 1 deletion Emulator/Components/CIA/CIATypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"
#include "C64Types.h"
#include "TODTypes.h"

namespace vc64 {
Expand Down
2 changes: 1 addition & 1 deletion Emulator/Components/CIA/TODTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#pragma once

#include "Aliases.h"
#include "Types.h"

//
// Structures
Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/CPU/CPUTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"
#include "PeddleTypes.h"

Expand Down
2 changes: 1 addition & 1 deletion Emulator/Components/Emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ Emulator::update()
bool
Emulator::shouldWarp()
{
if (main.cpu.clock < SEC(config.warpBoot)) {
if (main.cpu.clock < C64::sec(config.warpBoot)) {

return true;

Expand Down
2 changes: 1 addition & 1 deletion Emulator/Components/EmulatorTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"
#include "ThreadTypes.h"
#include "C64Types.h"

namespace vc64 {

Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/Memory/MemoryTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
2 changes: 1 addition & 1 deletion Emulator/Components/Ports/AudioPortTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#pragma once

#include "Aliases.h"
#include "Types.h"

namespace vc64 {

Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/Ports/ControlPortTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/Ports/ExpansionPortTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/Ports/PowerPortTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/Ports/SerialPortTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
2 changes: 1 addition & 1 deletion Emulator/Components/Ports/VideoPortTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

#pragma once

#include "Aliases.h"
#include "Types.h"

namespace vc64 {

Expand Down
1 change: 1 addition & 0 deletions Emulator/Components/SID/SID.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#pragma once

#include "SIDTypes.h"
#include "C64Types.h"
#include "ReSID.h"

namespace vc64 {
Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/SID/SIDTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"
#include "RingBuffer.h"

Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/SID/Volume.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later OR MPL-2.0
// -----------------------------------------------------------------------------

#include "Aliases.h"
#include "Serializable.h"

#pragma once
Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/VICII/BusTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"

namespace vc64 {
Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/VICII/DmaDebuggerTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"
#include "BusTypes.h"

Expand Down
1 change: 0 additions & 1 deletion Emulator/Components/VICII/VICIITypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"
#include "Serializable.h"
#include "BusTypes.h"
Expand Down
1 change: 0 additions & 1 deletion Emulator/FileSystems/FSDirEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

#pragma once

#include "Aliases.h"
#include "FSTypes.h"
#include "PETName.h"

Expand Down
2 changes: 1 addition & 1 deletion Emulator/FileSystems/FSTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#pragma once

#include "Aliases.h"
#include "Reflection.h"
#include "DriveTypes.h"

namespace vc64 {

Expand Down
1 change: 1 addition & 0 deletions Emulator/Media/AnyCollection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

#include "config.h"
#include "AnyCollection.h"
#include "Macros.h"

namespace vc64 {

Expand Down
2 changes: 2 additions & 0 deletions Emulator/Media/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ Folder.cpp
Script.cpp

)

add_subdirectory(Cartridges)
Loading

0 comments on commit 15d6d02

Please sign in to comment.