mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Try to avoid warning
This commit is contained in:
parent
88ca3e993c
commit
75c45c4f2b
@ -3012,18 +3012,22 @@ bool cheevos_load(bool cheevos_enable, const struct retro_game_info *info)
|
|||||||
{
|
{
|
||||||
int j;
|
int j;
|
||||||
unsigned hash;
|
unsigned hash;
|
||||||
const char *end = strchr(ext, '|');
|
const char *end = strchr(ext, '|');
|
||||||
size_t djb_size = end - ext;
|
size_t djb_size = end - ext;
|
||||||
|
const char *ext_path = ext;
|
||||||
|
|
||||||
if (end)
|
if (end)
|
||||||
ext = end + 1;
|
{
|
||||||
|
ext_path = end + 1;
|
||||||
|
ext = end + 1;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
djb_size = strlen(ext);
|
djb_size = strlen(ext);
|
||||||
ext = NULL;
|
ext = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
hash = cheevos_djb2(ext, djb_size);
|
hash = cheevos_djb2(ext_path, djb_size);
|
||||||
|
|
||||||
for (j = 0; finders[i].ext_hashes[j]; j++)
|
for (j = 0; finders[i].ext_hashes[j]; j++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user