menu/history.c - add error logs

This commit is contained in:
twinaphex 2014-07-21 05:29:15 +02:00
parent 6e15837444
commit d014b7f059

View File

@ -119,7 +119,10 @@ static void rom_history_write_file(rom_history_t *hist)
file = fopen(hist->conf_path, "w");
if (!file)
{
RARCH_ERR("Couldn't write to content history file: %s.\n", hist->conf_path);
return;
}
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");
if (!file || !hist)
{
RARCH_ERR("Couldn't read content history file: %s.\n", path);
return true;
}
char buf[3][PATH_MAX];
struct rom_history_entry *entry = NULL;