stuff
This commit is contained in:
@@ -1,4 +0,0 @@
|
|||||||
#include <BaseCore.hpp>
|
|
||||||
|
|
||||||
BaseCore::~BaseCore() {}
|
|
||||||
BaseCore::BaseCore() {}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#pragma once
|
|
||||||
#include <common.hpp>
|
|
||||||
|
|
||||||
struct BaseCore {
|
|
||||||
virtual ~BaseCore() = 0;
|
|
||||||
BaseCore();
|
|
||||||
};
|
|
||||||
@@ -6,9 +6,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||||||
|
|
||||||
add_subdirectory(gb)
|
add_subdirectory(gb)
|
||||||
add_library(cores
|
add_library(cores
|
||||||
BaseCore.cpp
|
|
||||||
BaseCore.hpp
|
|
||||||
Scheduler.cpp
|
Scheduler.cpp
|
||||||
Scheduler.hpp
|
Scheduler.hpp
|
||||||
common.hpp)
|
common.hpp)
|
||||||
target_include_directories(cores PUBLIC .)
|
target_include_directories(cores PUBLIC .)
|
||||||
|
target_link_libraries(cores PUBLIC gb)
|
||||||
|
|||||||
@@ -2,3 +2,6 @@ cmake_minimum_required(VERSION 3.20)
|
|||||||
project(gb CXX)
|
project(gb CXX)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
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
0
src/core/gb/Core.cpp
Normal file
13
src/core/gb/Core.hpp
Normal file
13
src/core/gb/Core.hpp
Normal 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
0
src/core/gb/Cpu.cpp
Normal file
6
src/core/gb/Cpu.hpp
Normal file
6
src/core/gb/Cpu.hpp
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#pragma once
|
||||||
|
#include <common.hpp>
|
||||||
|
|
||||||
|
namespace natsukashii::core {
|
||||||
|
struct Cpu {};
|
||||||
|
}
|
||||||
0
src/core/gb/Ppu.cpp
Normal file
0
src/core/gb/Ppu.cpp
Normal file
0
src/core/gb/Ppu.hpp
Normal file
0
src/core/gb/Ppu.hpp
Normal file
Reference in New Issue
Block a user