Skip to content

Commit fe966f3

Browse files
committed
Fix HDD boot
1 parent 5ba2925 commit fe966f3

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

frontend/drivers/platform_ps2.c

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,9 @@ static void init_drivers(bool extra_drivers)
158158
bool only_if_booted_from_hdd = true;
159159
#if defined(DEBUG) && !defined(BUILD_FOR_PCSX2)
160160
only_if_booted_from_hdd = false;
161-
#else
162-
init_poweroff_driver();
163-
init_dev9_driver();
164161
#endif
165-
hddStatus = init_hdd_driver(false, only_if_booted_from_hdd);
162+
hddStatus = init_hdd_driver(true, only_if_booted_from_hdd);
163+
printf("HDD init status: %d\n", hddStatus);
166164

167165
#ifndef IS_SALAMANDER
168166
if (extra_drivers)
@@ -240,9 +238,7 @@ static void deinit_drivers(bool deinit_filesystem, bool deinit_powerOff)
240238
{
241239
umount_hdd_partition(mountString);
242240

243-
deinit_hdd_driver(false);
244-
deinit_dev9_driver();
245-
deinit_cdfs_driver();
241+
deinit_hdd_driver(true);
246242
deinit_mx4sio_driver(true);
247243
deinit_usb_driver(true);
248244
deinit_memcard_driver(true);
@@ -307,6 +303,7 @@ static void common_init_drivers(bool extra_drivers)
307303
poweroffSetCallback(&poweroffHandler, NULL);
308304

309305
getcwd(cwd, sizeof(cwd));
306+
printf("CWD before mount: %s\n", cwd);
310307
#if !defined(IS_SALAMANDER) && !defined(DEBUG)
311308
/* If it is not Salamander, we need to go one level
312309
* up for setting the CWD. */
@@ -316,6 +313,7 @@ static void common_init_drivers(bool extra_drivers)
316313
mount_partition();
317314

318315
waitUntilDeviceIsReady(cwd);
316+
printf("CWD after mount: %s\n", cwd);
319317
}
320318

321319
static void frontend_ps2_init(void *data)

0 commit comments

Comments
 (0)