KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
cd.h
Go to the documentation of this file.
1#include <kos.h>
2#include <dc/syscalls.h>
3#include <sys/types.h>
4
5class cd{
6private:
7public:
8 cd();
9 ~cd();
10 bool checkStatus();
11 void returnToBios();
13};
14
18
20}
21
22// Returns false if we're exiting to the bios
25 if (status == CD_STATUS_OPEN ||
30 return false;
31 }
32 return true;
33}
34
Definition cd.h:5
cd()
Definition cd.h:15
~cd()
Definition cd.h:19
int status
Definition cd.h:12
void returnToBios()
Definition cd.h:35
int disc_type
Definition cd.h:12
bool checkStatus()
Definition cd.h:23
@ CD_STATUS_RETRY
Retry is needed.
Definition syscalls.h:211
@ CD_STATUS_OPEN
Disc tray is open.
Definition syscalls.h:209
@ CD_STATUS_ERROR
System error.
Definition syscalls.h:212
@ CD_STATUS_FATAL
Need reset syscalls.
Definition syscalls.h:213
@ CD_STATUS_NO_DISC
No disc inserted.
Definition syscalls.h:210
int cdrom_get_status(int *status, int *disc_type)
Get the status of the GD-ROM drive.
void syscall_system_bios_menu(void) __noreturn
Go to the BIOS menu.
Include everything KOS has to offer!
Functions to access the system calls of the Dreamcast ROM.