mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
menu/history.c - add error logs
This commit is contained in:
parent
6e15837444
commit
d014b7f059
@ -119,7 +119,10 @@ static void rom_history_write_file(rom_history_t *hist)
|
|||||||
file = fopen(hist->conf_path, "w");
|
file = fopen(hist->conf_path, "w");
|
||||||
|
|
||||||
if (!file)
|
if (!file)
|
||||||
|
{
|
||||||
|
RARCH_ERR("Couldn't write to content history file: %s.\n", hist->conf_path);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < hist->size; i++)
|
for (i = 0; i < hist->size; i++)
|
||||||
{
|
{
|
||||||
@ -171,7 +174,10 @@ static bool rom_history_read_file(rom_history_t *hist, const char *path)
|
|||||||
{
|
{
|
||||||
FILE *file = fopen(path, "r");
|
FILE *file = fopen(path, "r");
|
||||||
if (!file || !hist)
|
if (!file || !hist)
|
||||||
|
{
|
||||||
|
RARCH_ERR("Couldn't read content history file: %s.\n", path);
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
char buf[3][PATH_MAX];
|
char buf[3][PATH_MAX];
|
||||||
struct rom_history_entry *entry = NULL;
|
struct rom_history_entry *entry = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user