[gnome-video-arcade] history: Fix history.dat parsing.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-video-arcade] history: Fix history.dat parsing.
- Date: Mon, 27 Jul 2015 21:09:03 +0000 (UTC)
commit 8b47af2e2568a07db9f7addb4591bcdb8eb3246d
Author: Matthew Barnes <mbarnes redhat com>
Date: Mon Jul 27 16:58:49 2015 -0400
history: Fix history.dat parsing.
The history.dat file now contains data for both MAME and MESS. The MAME
entries still start with $info tags but the MESS entries start with tags
named after systems like $snes and $segacd. Ignore the MESS entries.
src/gva-history.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/gva-history.c b/src/gva-history.c
index c5cf77b..f354e1c 100644
--- a/src/gva-history.c
+++ b/src/gva-history.c
@@ -142,11 +142,13 @@ gva_history_init (GError **error)
}
else if (g_str_has_prefix (buffer->str, "$<a"))
{
- history_process_link (entry, buffer->str + 1);
+ if (entry != NULL)
+ history_process_link (entry, buffer->str + 1);
}
else if (g_str_has_prefix (buffer->str, "$bio"))
{
- entry->offset = offset;
+ if (entry != NULL)
+ entry->offset = offset;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]