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:
Bryan Schumaker 2011-11-06 11:29:38 -05:00
parent 6d7828b946
commit d678a5c170
2 changed files with 14 additions and 15 deletions

View File

@ -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;

View File

@ -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()
{
}