File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,15 @@ void wait_lid_status(bool open) {
143
143
144
144
void try_boot_cd () {
145
145
int32_t read ;
146
-
146
+ /*
147
147
debug_write("Swap CD now");
148
148
wait_lid_status(true);
149
149
wait_lid_status(false);
150
+ */
151
+
152
+ // Send Read-TOC command
153
+ debug_write ("TOC read command sent..." );
154
+ cd_command (0x1E , NULL , 0 );
150
155
151
156
debug_write ("Initializing CD" );
152
157
if (!CdInit ()) {
@@ -195,9 +200,9 @@ void try_boot_cd() {
195
200
const char * bootfile = "cdrom:PSX.EXE;1" ;
196
201
197
202
char bootfilebuf [32 ];
198
- debug_write ("Loading SYSTEM .CNF" );
203
+ debug_write ("Loading SYSTEM2 .CNF" );
199
204
200
- int32_t cnf_fd = FileOpen ("cdrom:SYSTEM .CNF;1" , FILE_READ );
205
+ int32_t cnf_fd = FileOpen ("cdrom:SYSTEM2 .CNF;1" , FILE_READ );
201
206
if (cnf_fd > 0 ) {
202
207
read = FileRead (cnf_fd , data_buffer , 2048 );
203
208
FileClose (cnf_fd );
You can’t perform that action at this time.
0 commit comments