Add some some FIXMEs for broken code.
This commit is contained in:
parent
14f7f641f3
commit
83c60aa94e
|
@ -79,6 +79,7 @@ const char *rarch_manage_libretro_set_first_file(const char *libretro_path, cons
|
||||||
//We need to set libretro to the first entry in the cores
|
//We need to set libretro to the first entry in the cores
|
||||||
//directory so that it will be saved to the config file
|
//directory so that it will be saved to the config file
|
||||||
|
|
||||||
|
// FIXME: Use struct string_list*
|
||||||
char ** dir_list = dir_list_new(libretro_path, exe_ext, false);
|
char ** dir_list = dir_list_new(libretro_path, exe_ext, false);
|
||||||
|
|
||||||
const char * retstr = NULL;
|
const char * retstr = NULL;
|
||||||
|
@ -112,14 +113,18 @@ const char *rarch_manage_libretro_set_first_file(const char *libretro_path, cons
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FIXME: Broken, returns a pointer to data on the stack.
|
||||||
retstr = fname_tmp;
|
retstr = fname_tmp;
|
||||||
#else
|
#else
|
||||||
|
// FIXME: Broken, returns a pointer to dynamically allocated data
|
||||||
|
// which is freed before returning.
|
||||||
retstr = first_exe;
|
retstr = first_exe;
|
||||||
#endif
|
#endif
|
||||||
RARCH_LOG("Set first entry in libretro core dir to libretro path: [%s].\n", retstr);
|
RARCH_LOG("Set first entry in libretro core dir to libretro path: [%s].\n", retstr);
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Should not use two layers of goto labels.
|
||||||
error:
|
error:
|
||||||
RARCH_ERR("Failed to set first entry to libretro path.\n");
|
RARCH_ERR("Failed to set first entry to libretro path.\n");
|
||||||
end:
|
end:
|
||||||
|
|
Loading…
Reference in New Issue