mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
- Silence 'variable might be used uninitialized' warning
- PS2 - Add TODO/FIXME note
This commit is contained in:
parent
968ec1f4b1
commit
b929553231
@ -44,10 +44,12 @@ static void create_path_names(void)
|
|||||||
{
|
{
|
||||||
char user_path[FILENAME_MAX];
|
char user_path[FILENAME_MAX];
|
||||||
|
|
||||||
|
/* TODO/FIXME - third parameter here needs to be size of
|
||||||
|
* rootDevicePath(bootDeviceID) */
|
||||||
strlcpy(user_path, rootDevicePath(bootDeviceID), rootDevicePath(bootDeviceID));
|
strlcpy(user_path, rootDevicePath(bootDeviceID), rootDevicePath(bootDeviceID));
|
||||||
strcat(user_path, "RETROARCH");
|
strlcat(user_path, "RETROARCH", sizeof(user_path));
|
||||||
|
|
||||||
// Content in the same folder
|
/* Content in the same folder */
|
||||||
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE], cwd,
|
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE], cwd,
|
||||||
"cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE]));
|
"cores", sizeof(g_defaults.dirs[DEFAULT_DIR_CORE]));
|
||||||
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], cwd,
|
fill_pathname_join(g_defaults.dirs[DEFAULT_DIR_CORE_INFO], cwd,
|
||||||
|
@ -383,7 +383,8 @@ static int playlist_association_left(unsigned type, const char *label,
|
|||||||
bool wraparound)
|
bool wraparound)
|
||||||
{
|
{
|
||||||
char core_filename[PATH_MAX_LENGTH];
|
char core_filename[PATH_MAX_LENGTH];
|
||||||
size_t i, next, current = 0;
|
size_t i, current = 0;
|
||||||
|
size_t next = 0;
|
||||||
playlist_t *playlist = playlist_get_cached();
|
playlist_t *playlist = playlist_get_cached();
|
||||||
const char *default_core_path = playlist_get_default_core_path(playlist);
|
const char *default_core_path = playlist_get_default_core_path(playlist);
|
||||||
bool default_core_set = false;
|
bool default_core_set = false;
|
||||||
@ -430,11 +431,8 @@ static int playlist_association_left(unsigned type, const char *label,
|
|||||||
|
|
||||||
/* ...then decrement it */
|
/* ...then decrement it */
|
||||||
if (current == 0)
|
if (current == 0)
|
||||||
{
|
|
||||||
/* Unset core association (DETECT) */
|
/* Unset core association (DETECT) */
|
||||||
next = 0;
|
|
||||||
default_core_set = false;
|
default_core_set = false;
|
||||||
}
|
|
||||||
else
|
else
|
||||||
next = current - 1;
|
next = current - 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user