This commit is contained in:
CocoSimone
2022-05-07 10:25:01 +02:00
parent 44711efa44
commit fa13826af7
10 changed files with 23 additions and 13 deletions

View File

@@ -1,4 +0,0 @@
#include <BaseCore.hpp>
BaseCore::~BaseCore() {}
BaseCore::BaseCore() {}

View File

@@ -1,7 +0,0 @@
#pragma once
#include <common.hpp>
struct BaseCore {
virtual ~BaseCore() = 0;
BaseCore();
};

View File

@@ -6,9 +6,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_subdirectory(gb)
add_library(cores
BaseCore.cpp
BaseCore.hpp
Scheduler.cpp
Scheduler.hpp
common.hpp)
target_include_directories(cores PUBLIC .)
target_link_libraries(cores PUBLIC gb)

View File

@@ -2,3 +2,6 @@ cmake_minimum_required(VERSION 3.20)
project(gb CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(gb Core.hpp Core.cpp Cpu.hpp Cpu.cpp Ppu.hpp Ppu.cpp)
target_include_directories(gb PUBLIC . ..)

0
src/core/gb/Core.cpp Normal file
View File

13
src/core/gb/Core.hpp Normal file
View File

@@ -0,0 +1,13 @@
#pragma once
#include <Cpu.hpp>
#include <Ppu.hpp>
namespace natsukashii::core {
struct Core {
Core();
void Run();
private:
Cpu cpu;
// Ppu ppu;
};
}

0
src/core/gb/Cpu.cpp Normal file
View File

6
src/core/gb/Cpu.hpp Normal file
View File

@@ -0,0 +1,6 @@
#pragma once
#include <common.hpp>
namespace natsukashii::core {
struct Cpu {};
}

0
src/core/gb/Ppu.cpp Normal file
View File

0
src/core/gb/Ppu.hpp Normal file
View File