comparison src/xs_sidplay.h @ 93:63cf9b2ddadf

Minor changes
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 10 Jan 2004 12:44:00 +0000
parents 2607683bc9eb
children 4e929bb71057
comparison
equal deleted inserted replaced
92:2607683bc9eb 93:63cf9b2ddadf
25 25
26 return g_strdup(pfInfo->infoString[0]); 26 return g_strdup(pfInfo->infoString[0]);
27 } 27 }
28 28
29 /* Split the filename into path */ 29 /* Split the filename into path */
30 sFilePath = g_strdup(songFilename); 30 sFilePath = g_strdup(pcFilename);
31 sFileName = strrchr(sFilePath, '/'); 31 sFileName = strrchr(sFilePath, '/');
32 if (sFileName) 32 if (sFileName)
33 sFileName[1] = 0; 33 sFileName[1] = 0;
34 34
35 /* Filename */ 35 /* Filename */
36 sFileName = strrchr(songFilename, '/'); 36 sFileName = strrchr(pcFilename, '/');
37 if (sFileName) 37 if (sFileName)
38 sFileName = g_strdup(sFileName + 1); 38 sFileName = g_strdup(sFileName + 1);
39 else 39 else
40 sFileName = g_strdup(songFilename); 40 sFileName = g_strdup(pcFilename);
41 41
42 sFileExt = strrchr(sFileName, '.'); 42 sFileExt = strrchr(sFileName, '.');
43 sFileExt[0] = 0; 43 sFileExt[0] = 0;
44 44
45 /* Extension */ 45 /* Extension */
46 sFileExt = strrchr(songFilename, '.'); 46 sFileExt = strrchr(pcFilename, '.');
47 47
48 48
49 /* FIXME FIXME: get STIL-information */ 49 /* FIXME FIXME: get STIL-information */
50 50
51 51
137 { 137 {
138 t_xs_sldb_node *tuneLen = NULL; 138 t_xs_sldb_node *tuneLen = NULL;
139 t_xs_tune *pResult; 139 t_xs_tune *pResult;
140 TTUNEINFO tuneInfo; 140 TTUNEINFO tuneInfo;
141 TTUNE *testTune; 141 TTUNE *testTune;
142 gboolean haveInfo; 142 gboolean haveInfo = false;
143 gint i; 143 gint i;
144 144
145 /* Check if the tune exists and is readable */ 145 /* Check if the tune exists and is readable */
146 if ((testTune = new TTUNE(pcFilename)) == NULL) 146 if ((testTune = new TTUNE(pcFilename)) == NULL)
147 return NULL; 147 return NULL;