Prepare CD code and unify header names

This commit is contained in:
Jaby 2022-12-12 03:43:18 +01:00
parent e33f0f6f18
commit 20ffbc5fa9
19 changed files with 49 additions and 17 deletions

View File

@ -0,0 +1,8 @@
#ifndef __JABYENGINE_CD_FILE_PROCESSOR_HPP__
#define __JABYENGINE_CD_FILE_PROCESSOR_HPP__
// This will be used as the file processor but will work on cd types
// Will probably use file_processor
// Will also setup the circular buffer for the CD code
#endif //!__JABYENGINE_CD_FILE_PROCESSOR_HPP__

View File

@ -1,6 +1,6 @@
#ifndef __JABYENGINE_FILE_PROCESSOR_HPP__
#define __JABYENGINE_FILE_PROCESSOR_HPP__
#include "../File_Types.hpp"
#include "../file_types.hpp"
namespace FileProcessor {
class State {

View File

@ -0,0 +1,6 @@
#ifndef __JABYENGINE_CD_FILE_TYPES_HPP__
#define __JABYENGINE_CD_FILE_TYPES_HPP__
// Will extend the file_types for using cd types
#endif //!__JABYENGINE_CD_FILE_TYPES_HPP__

View File

@ -1,6 +1,6 @@
#ifndef __JABYENGINE_GPU_HPP__
#define __JABYENGINE_GPU_HPP__
#include "../System/IOPorts/GPU_IO.hpp"
#include "../System/IOPorts/gpu_io.hpp"
#if !defined(JABYENGINE_NTSC) && !defined(JABYENGINE_PAL)
#error "JABYENGINE_NTSC or JABYENGINE_PAL must be defined"

View File

@ -1,6 +1,6 @@
#ifndef __JABYENGINE_DMA_IO_HPP__
#define __JABYENGINE_DMA_IO_HPP__
#include "IOPort.hpp"
#include "ioport.hpp"
namespace DMA {
struct __no_align MADR : public ComplexBitMap<uint32_t> {

View File

@ -1,7 +1,7 @@
#ifndef __JABYENGINE_GPU_IO_HPP__
#define __JABYENGINE_GPU_IO_HPP__
#include "IOPort.hpp"
#include "../../GPU/GPU_Types.hpp"
#include "ioport.hpp"
#include "../../GPU/gpu_types.hpp"
namespace GPU {
enum struct SemiTransparency {

View File

@ -1,6 +1,6 @@
#ifndef __JABYENGINE_SPU_IO_HPP__
#define __JABYENGINE_SPU_IO_HPP__
#include "IOPort.hpp"
#include "ioport.hpp"
namespace SPU {
enum struct Mode {

View File

@ -0,0 +1,18 @@
#ifndef __JABYENGINE_CD_HPP__
#define __JABYENGINE_CD_HPP__
#include <stdint.h>
namespace CD {
namespace CircularBuffer {
extern uint8_t* write_ptr;
extern uint8_t* read_ptr;
extern uint8_t* end_ptr;
}
enum struct State {
};
extern State state;
}
#endif //!__JABYENGINE_CD_HPP__

View File

@ -1,8 +1,8 @@
#ifndef __JABYENGINE_INTERNAL_GPU_HPP__
#define __JABYENGINE_INTERNAL_GPU_HPP__
#include <PSX/GPU/GPU.hpp>
#include <PSX/System/IOPorts/DMA_IO.hpp>
#include <PSX/System/IOPorts/GPU_IO.hpp>
#include <PSX/GPU/gpu.hpp>
#include <PSX/System/IOPorts/dma_io.hpp>
#include <PSX/System/IOPorts/gpu_io.hpp>
namespace GPU {
namespace Screen {

View File

@ -1,6 +1,6 @@
#include "../../include/GPU/GPU.hpp"
#include <PSX/File/Processor/File_Processor.hpp>
#include <PSX/GPU/GPU.hpp>
#include "../../include/GPU/gpu.hpp"
#include <PSX/File/Processor/file_processor.hpp>
#include <PSX/GPU/gpu.hpp>
#ifdef JABYENGINE_PAL
#include "splash_image_pal_boot.hpp"

View File

@ -1,4 +1,4 @@
#include <PSX/System/IOPorts/SPU_IO.hpp>
#include <PSX/System/IOPorts/spu_io.hpp>
#include <stdio.h>
#include <limits.h>

View File

@ -1,5 +1,5 @@
#include "BootLoader/boot_loader.hpp"
#include <PSX/System/IOPorts/DMA_IO.hpp>
#include <PSX/System/IOPorts/dMa_io.hpp>
#include <stdio.h>
extern int main();

View File

@ -1,7 +1,7 @@
#ifndef __JABYENGINE_INTERNAL_SIMPLE_HELPER_HPP__
#define __JABYENGINE_INTERNAL_SIMPLE_HELPER_HPP__
#define private public
#include <PSX/File/Processor/File_Processor.hpp>
#include <PSX/File/Processor/file_processor.hpp>
namespace FileProcessor {
namespace Helper {

View File

@ -1,4 +1,4 @@
#include "../../../include/GPU/GPU.hpp"
#include "../../../include/GPU/gpu.hpp"
#include "SimpleHelper.hpp"
#include <limits.h>
#include <stdio.h>

View File

@ -1,4 +1,4 @@
#include "../include/GPU/GPU.hpp"
#include "../include/GPU/gpu.hpp"
namespace GPU {
namespace Screen {