Merge pull request #12801 from fjtrujy/ps2/HDD_startup

Avoid to start HDD if user boot from different unit
This commit is contained in:
Autechre 2021-08-15 17:21:35 +02:00 committed by GitHub
commit a6f44ab642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,9 @@
#include "../../verbosity.h"
#include "../../paths.h"
#if defined(DEBUG)
#define DEFAULT_PARTITION "hdd0:__common:pfs"
#endif
static enum frontend_fork ps2_fork_mode = FRONTEND_FORK_NONE;
static char cwd[FILENAME_MAX];
@ -231,7 +233,7 @@ static int mount_hdd_partition() {
shouldMount = 1;
strlcpy(mountPath, cwd, sizeof(mountPath));
}
#if !defined(IS_SALAMANDER)
#if !defined(IS_SALAMANDER) && defined(DEBUG)
else
{
// Even if we're booting from USB, try to mount default partition