Skip to content

Commit 3fd21fe

Browse files
committed
TOCPerfect changes
1 parent 2c7d321 commit 3fd21fe

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

loader/secondary.c

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,15 @@ void wait_lid_status(bool open) {
143143

144144
void try_boot_cd() {
145145
int32_t read;
146-
146+
/*
147147
debug_write("Swap CD now");
148148
wait_lid_status(true);
149149
wait_lid_status(false);
150+
*/
151+
152+
// Send Read-TOC command
153+
debug_write("TOC read command sent...");
154+
cd_command(0x1E, NULL, 0);
150155

151156
debug_write("Initializing CD");
152157
if (!CdInit()) {
@@ -195,9 +200,9 @@ void try_boot_cd() {
195200
const char * bootfile = "cdrom:PSX.EXE;1";
196201

197202
char bootfilebuf[32];
198-
debug_write("Loading SYSTEM.CNF");
203+
debug_write("Loading SYSTEM2.CNF");
199204

200-
int32_t cnf_fd = FileOpen("cdrom:SYSTEM.CNF;1", FILE_READ);
205+
int32_t cnf_fd = FileOpen("cdrom:SYSTEM2.CNF;1", FILE_READ);
201206
if (cnf_fd > 0) {
202207
read = FileRead(cnf_fd, data_buffer, 2048);
203208
FileClose(cnf_fd);

0 commit comments

Comments
 (0)