Disable warning and solve an issue with the cwd

This commit is contained in:
Francisco Javier Trujillo Mata 2021-01-15 14:19:27 +01:00
parent 6726538971
commit 0dbd0fd492
3 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ else
endif
ifeq ($(MUTE_WARNINGS), 1)
DISABLE_WARNINGS := -Wno-sign-compare -Wno-unused -Wno-parentheses
DISABLE_WARNINGS := -Wno-sign-compare -Wno-unused -Wno-parentheses -Wdiscarded-qualifiers
endif
INCDIR = -I$(PS2DEV)/gsKit/include -I$(PS2SDK)/ports/include

View File

@ -47,7 +47,7 @@ static void create_path_names(void)
/* TODO/FIXME - third parameter here needs to be size of
* rootDevicePath(bootDeviceID) */
strlcpy(user_path, rootDevicePath(bootDeviceID), rootDevicePath(bootDeviceID));
strlcpy(user_path, rootDevicePath(bootDeviceID), sizeof(user_path));
strlcat(user_path, "RETROARCH", sizeof(user_path));
/* Content in the same folder */
@ -192,7 +192,7 @@ static void frontend_ps2_init(void *data)
#if defined(BUILD_FOR_PCSX2)
bootDeviceID = BOOT_DEVICE_MC0;
strlcpy(cwd, rootDevicePath(bootDeviceID), sizeof(rootDevicePath(bootDeviceID)));
strlcpy(cwd, rootDevicePath(bootDeviceID), sizeof(cwd));
#else
getcwd(cwd, sizeof(cwd));
bootDeviceID = getBootDeviceID(cwd);

View File

@ -164,7 +164,7 @@ bool waitUntilDeviceIsReady(enum BootDeviceIDs device_id)
{
struct stat buffer;
int ret = -1;
int retries = 10;
int retries = 100;
char *rootDevice = rootDevicePath(device_id);
while(ret != 0 && retries > 0)