Add songs to highscore.db at start, save date to db, read date and numplayed to song-infos.
This commit is contained in:
1 parent
11a72e6e8d
commit
f0ab780a87
4 files changed
+35
-1
No files matched your search
@@ -262,6 +262,7 @@ namespace VocaluxeLib
|
||||
public interface IDataBase
|
||||
{
|
||||
bool GetCover(string fileName, ref CTexture texture, int coverSize);
|
||||
bool GetDataBaseSongInfos(string artist, string title, out int numPlayed, out string dateAdded);
|
||||
}
|
||||
|
||||
public interface IControllers
|
||||
|
||||
@@ -148,6 +148,7 @@ namespace VocaluxeLib.Songs
|
||||
public readonly List<string> Language = new List<string>();
|
||||
|
||||
public string DateAdded = "";
|
||||
public int NumPlayed = 0;
|
||||
|
||||
// Notes
|
||||
public readonly CNotes Notes = new CNotes();
|
||||
@@ -534,6 +535,8 @@ namespace VocaluxeLib.Songs
|
||||
sr.Dispose();
|
||||
_CheckFiles();
|
||||
|
||||
CBase.DataBase.GetDataBaseSongInfos(Artist, Title, out NumPlayed, out DateAdded);
|
||||
|
||||
//Before saving this tags to .txt: Check, if ArtistSorting and Artist are equal, then don't save this tag.
|
||||
if (ArtistSorting == "")
|
||||
ArtistSorting = Artist;
|
||||
|
||||
Reference in new issue
Block a user