mirror of
https://github.com/TomHarte/CLK.git
synced 2025-04-10 22:37:30 +00:00
Simplify all namespace usages.:wq
This commit is contained in:
parent
6d092e0633
commit
f22aa6eb36
@ -14,8 +14,7 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace TI {
|
||||
namespace TMS {
|
||||
namespace TI::TMS {
|
||||
|
||||
enum Personality {
|
||||
TMS9918A, // includes the 9928 and 9929; set TV standard and output device as desired.
|
||||
@ -36,13 +35,11 @@ enum class TVStandard {
|
||||
NTSC
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#include "Implementation/9918Base.hpp"
|
||||
|
||||
namespace TI {
|
||||
namespace TMS {
|
||||
namespace TI::TMS {
|
||||
|
||||
/*!
|
||||
Provides emulation of the TMS9918a, TMS9928 and TMS9929. Likely in the future to be the
|
||||
@ -127,7 +124,6 @@ template <Personality personality> class TMS9918: private Base<personality> {
|
||||
bool get_interrupt_line() const;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TMS9918_hpp */
|
||||
|
@ -28,8 +28,7 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace TI {
|
||||
namespace TMS {
|
||||
namespace TI::TMS {
|
||||
|
||||
constexpr uint8_t StatusInterrupt = 0x80;
|
||||
constexpr uint8_t StatusSpriteOverflow = 0x40;
|
||||
@ -622,7 +621,6 @@ template <Personality personality> struct Base: public Storage<personality> {
|
||||
#include "Fetch.hpp"
|
||||
#include "Draw.hpp"
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* TMS9918Base_hpp */
|
||||
|
@ -10,8 +10,7 @@
|
||||
#define AccessEnums_hpp
|
||||
|
||||
|
||||
namespace TI {
|
||||
namespace TMS {
|
||||
namespace TI::TMS {
|
||||
|
||||
// The screen mode is a necessary predecessor to picking the line mode,
|
||||
// which is the thing latched per line.
|
||||
@ -108,7 +107,6 @@ enum class SpriteMode {
|
||||
MasterSystem,
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* AccessEnums_hpp */
|
||||
|
@ -12,8 +12,7 @@
|
||||
#include "../9918.hpp"
|
||||
#include "PersonalityTraits.hpp"
|
||||
|
||||
namespace TI {
|
||||
namespace TMS {
|
||||
namespace TI::TMS {
|
||||
|
||||
enum class Clock {
|
||||
Internal,
|
||||
@ -215,7 +214,6 @@ template <Personality personality> struct LineLayout<personality, std::enable_if
|
||||
constexpr static int EndOfRightBorder = 1341;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* ClockConverter_hpp */
|
||||
|
@ -9,8 +9,7 @@
|
||||
#ifndef PersonalityTraits_hpp
|
||||
#define PersonalityTraits_hpp
|
||||
|
||||
namespace TI {
|
||||
namespace TMS {
|
||||
namespace TI::TMS {
|
||||
|
||||
// Genus determinants for the various personalityes.
|
||||
constexpr bool is_sega_vdp(Personality p) {
|
||||
@ -47,7 +46,5 @@ constexpr size_t memory_mask(Personality p) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif /* PersonalityTraits_hpp */
|
||||
|
@ -15,8 +15,7 @@
|
||||
|
||||
#include <optional>
|
||||
|
||||
namespace TI {
|
||||
namespace TMS {
|
||||
namespace TI::TMS {
|
||||
|
||||
/// A container for personality-specific storage; see specific instances below.
|
||||
template <Personality personality, typename Enable = void> struct Storage {
|
||||
@ -493,7 +492,6 @@ template <Personality personality> struct Storage<personality, std::enable_if_t<
|
||||
void begin_line(ScreenMode, bool) {}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif /* Storage_h */
|
||||
|
Loading…
x
Reference in New Issue
Block a user