Skip to content

Commit

Permalink
Move the SFML emulator files to thier own folder
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom committed Mar 31, 2024
1 parent 933d56d commit dd8c779
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 18 deletions.
7 changes: 1 addition & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
add_executable(8ChocChip
sfml/SfmlSpeaker.h
sfml/SfmlRenderer.cpp
sfml/SfmlRenderer.h
sfml/SfmlKeyboard.cpp
sfml/SfmlKeyboard.h)
add_executable(8ChocChip)

add_subdirectory(sfml)
add_subdirectory(util)
Expand Down
2 changes: 1 addition & 1 deletion src/emulator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ target_sources(8ChocChip PRIVATE Cpu.cpp
Keyboard.h
Renderer.cpp
Renderer.h
../sfml/SfmlSpeaker.cpp
../sfml/emulator/SfmlSpeaker.cpp
Speaker.h)
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#include <iostream>

#include "emulator/Cpu.h"
#include "sfml/SfmlKeyboard.h"
#include "sfml/SfmlRenderer.h"
#include "sfml/SfmlSpeaker.h"
#include "fstream"
#include "sfml/emulator/SfmlKeyboard.h"
#include "sfml/emulator/SfmlRenderer.h"
#include "sfml/emulator/SfmlSpeaker.h"

#include "sfml/ui/TextButton.h"
#include "util/MiscUtil.h"
Expand Down
6 changes: 3 additions & 3 deletions src/sfml/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
target_sources(8ChocChip PRIVATE SfmlSpeaker.cpp
SfmlSpeaker.h)
#target_sources(8ChocChip PRIVATE)

add_subdirectory(ui)
add_subdirectory(ui)
add_subdirectory(emulator)
7 changes: 7 additions & 0 deletions src/sfml/emulator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
target_sources(8ChocChip PRIVATE
SfmlSpeaker.cpp
SfmlSpeaker.h
SfmlRenderer.cpp
SfmlRenderer.h
SfmlKeyboard.cpp
SfmlKeyboard.h)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef INC_8CHOCCHIP_SFMLKEYBOARD_H
#define INC_8CHOCCHIP_SFMLKEYBOARD_H

#include "../emulator/Keyboard.h"
#include "../../emulator/Keyboard.h"

class SfmlKeyboard : public Keyboard {
public:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/sfml/SfmlRenderer.h → src/sfml/emulator/SfmlRenderer.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#ifndef INC_8CHOCCHIP_SFMLRENDERER_H
#define INC_8CHOCCHIP_SFMLRENDERER_H

#include <SFML/Graphics.hpp>
#include "SFML/Graphics.hpp"

#include "../emulator/Renderer.h"
#include "../../emulator/Renderer.h"

class SfmlRenderer : public Renderer {
private:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/sfml/SfmlSpeaker.h → src/sfml/emulator/SfmlSpeaker.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#ifndef INC_8CHOCCHIP_SFMLSPEAKER_H
#define INC_8CHOCCHIP_SFMLSPEAKER_H

#include <SFML/Audio.hpp>
#include "../emulator/Speaker.h"
#include "../../emulator/Speaker.h"
#include "SFML/Audio.hpp"

class SfmlSpeaker : public Speaker {
private:
Expand Down

0 comments on commit dd8c779

Please sign in to comment.