changeset 469:fc98032223d1 trunk

[svn] Simplify magic reader and get GYM tag reading right.
author chainsaw
date Wed, 18 Jan 2006 14:34:54 -0800
parents ac535d1224b5
children 2549ffd55c3a
files Plugins/Input/console/Audacious_Driver.cpp
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/console/Audacious_Driver.cpp	Wed Jan 18 14:03:32 2006 -0800
+++ b/Plugins/Input/console/Audacious_Driver.cpp	Wed Jan 18 14:34:54 2006 -0800
@@ -68,10 +68,6 @@
 			vfs_fclose(file);
 			return PLAY_TYPE_GYM;
 		}
-		vfs_fclose(file);
-	}
-	if (file = vfs_fopen(filename, "rb")) {
-        	vfs_fread(magic, 1, 3, file);
 		if (!strncmp(magic, "GBS", 3)) {
 			vfs_fclose(file);
 			return PLAY_TYPE_GBS;
@@ -148,7 +144,7 @@
 		tinput = bmp_title_input_new();
 
 		tinput->performer = g_strdup(header.game);
-		tinput->album_name = g_strdup(header.game);
+		tinput->album_name = g_strdup(header.copyright);
 		tinput->track_name = g_strdup(header.song);		
 
 		tinput->file_name = g_path_get_basename(filename);