mirror of
https://github.com/liuk7071/ChonkyStation.git
synced 2025-04-02 10:52:38 -04:00
28 lines
485 B
C++
28 lines
485 B
C++
#pragma once
|
|
#pragma warning(disable : 4996)
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <algorithm>
|
|
#include <vector>
|
|
#include <fstream>
|
|
|
|
#define SECTOR_SIZE 0x930
|
|
#define CDXA_DATA_SIZE 0x800
|
|
|
|
class CD
|
|
{
|
|
public:
|
|
CD();
|
|
void OpenFile(const char* directory);
|
|
const char* dir;
|
|
bool IsCDInserted = false;
|
|
public:
|
|
void read(uint32_t loc);
|
|
uint8_t ReadDataByte();
|
|
public:
|
|
FILE* iso;
|
|
int buff_left = 0;
|
|
uint8_t SectorBuffer[SECTOR_SIZE];
|
|
uint8_t DataBuffer[CDXA_DATA_SIZE];
|
|
};
|
|
|