libsaria: Set correct library version
Otherwise we'll only read the first 124-ish songs and then stop... Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
9043183807
commit
c094f9791f
|
@ -15,7 +15,7 @@
|
|||
#include <sstream>
|
||||
using namespace std;
|
||||
|
||||
#define LIBRARY_CURRENT_VERSION 2 /* 11/22/2012 */
|
||||
#define LIBRARY_CURRENT_VERSION 3 /* 11/22/2012 */
|
||||
static string libdir = "library";
|
||||
|
||||
static string id_to_filename(unsigned int id)
|
||||
|
@ -58,7 +58,7 @@ void read_path(ifstream &stream)
|
|||
getline(stream, tmp);
|
||||
s << tmp;
|
||||
s >> version;
|
||||
if (version > 2)
|
||||
if (version > LIBRARY_CURRENT_VERSION)
|
||||
return;
|
||||
|
||||
getline(stream, path.path);
|
||||
|
@ -68,7 +68,7 @@ void read_path(ifstream &stream)
|
|||
s.str(tmp);
|
||||
|
||||
s >> path.id >> path.visible;
|
||||
if (version <= 3) {
|
||||
if (version < 3) {
|
||||
unsigned int next_track;
|
||||
s >> next_track;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue