Files
vba10/Database/ROMDBEntry.cpp
2015-06-18 17:33:07 +00:00

32 lines
1.0 KiB
C++

#include "Database\ROMDBEntry.h"
#define DEFAULT_SNAPSHOT "Assets/no_snapshot.png";
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Platform;
using namespace Platform::Collections;
namespace VBA10
{
ROMDBEntry::ROMDBEntry(int locationtype, Platform::String^ displayname, Platform::String^ filename, Platform::String^ folderpath)
:_locationType(locationtype), _displayName(displayname), _fileName(filename), _folderPath(folderpath)
{
_lastPlayed = DateTime{ 0 };
_autoSaveIndex = 0;
_snapshotUri = DEFAULT_SNAPSHOT;
}
ROMDBEntry::ROMDBEntry(int locationtype, Platform::String^ displayname, Platform::String^ filename, Platform::String^ folderpath,
DateTime lastplayed, int autosaveindex, Platform::String^ snapshoturi)
:_locationType(locationtype), _displayName(displayname), _fileName(filename), _folderPath(folderpath),
_lastPlayed(lastplayed), _autoSaveIndex(autosaveindex), _snapshotUri(snapshoturi)
{
}
}