libsaria: Move library path constructor
This constructor creates a library path from a file, so it makes sense to store it in file.cpp instead of path.cpp.
This commit is contained in:
parent
6d7828b946
commit
d678a5c170
|
@ -5,6 +5,20 @@
|
|||
#include <libsaria/library.h>
|
||||
#include "library.h"
|
||||
|
||||
void LibraryPath::(InFile &in, string dir)
|
||||
{
|
||||
unsigned int size;
|
||||
|
||||
path = dir;
|
||||
size = in.read_lui();
|
||||
println("Library path dir: " + path);
|
||||
print("Library path size: ");
|
||||
println(size);
|
||||
|
||||
for (unsigned int i = 0; i < size; i++)
|
||||
file_list.push_back(TrackTag(in));
|
||||
}
|
||||
|
||||
void LibraryPath::save(OutFile &out)
|
||||
{
|
||||
list<TrackTag>::iterator it;
|
||||
|
|
|
@ -14,21 +14,6 @@ LibraryPath::LibraryPath(string dir)
|
|||
path = dir;
|
||||
}
|
||||
|
||||
LibraryPath::LibraryPath(InFile &in, string dir)
|
||||
{
|
||||
unsigned int size;
|
||||
|
||||
path = dir;
|
||||
size = in.read_lui();
|
||||
println("Library path dir: " + path);
|
||||
print("Library path size: ");
|
||||
println(size);
|
||||
|
||||
for (unsigned int i = 0; i < size; i++)
|
||||
file_list.push_back(TrackTag(in));
|
||||
|
||||
}
|
||||
|
||||
LibraryPath::~LibraryPath()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue