summaryrefslogtreecommitdiff
path: root/lib/nes/app/application.hh
diff options
context:
space:
mode:
authorHannes Schulze <haschu0103@outlook.de>2025-01-31 23:30:56 +0100
committerHannes Schulze <haschu0103@outlook.de>2025-01-31 23:30:56 +0100
commitccb81b60dac888e44079fb0228c1d5d8542ceade (patch)
tree297b672e2cd4de2ce4203c19b973274c5750e60d /lib/nes/app/application.hh
parentcd8ae0e4f628bd491fcaf1dd4778bc283d619065 (diff)
move components into dedicated namespaces
Diffstat (limited to 'lib/nes/app/application.hh')
-rw-r--r--lib/nes/app/application.hh7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/nes/app/application.hh b/lib/nes/app/application.hh
index 9f6bd16..5cd6ac7 100644
--- a/lib/nes/app/application.hh
+++ b/lib/nes/app/application.hh
@@ -7,7 +7,10 @@
namespace nes
{
class display;
+} // namespace nes
+namespace nes::app
+{
/// Entrypoint for the application.
///
/// This class takes care of presenting a UI screen or the emulator, handling any errors and implementing the main
@@ -18,7 +21,7 @@ namespace nes
{
display& display_;
input_manager input_manager_;
- nes console_;
+ sys::nes console_;
public:
explicit application(display&, input_device_keyboard&);
@@ -34,4 +37,4 @@ namespace nes
auto add_controller(input_device_controller& c) -> void { input_manager_.add_controller(c); }
auto remove_controller(input_device_controller& c) -> void { input_manager_.remove_controller(c); }
};
-} // namespace nes \ No newline at end of file
+} // namespace nes::app \ No newline at end of file