mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
Disable warning and solve an issue with the cwd
This commit is contained in:
parent
6726538971
commit
0dbd0fd492
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user