2015-06-18 17:33:07 +00:00
|
|
|
#include "Database\ROMDBEntry.h"
|
2015-08-02 03:22:41 +00:00
|
|
|
#include "Definitions.h"
|
2015-06-18 17:33:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using namespace Windows::Foundation;
|
|
|
|
|
using namespace Windows::Foundation::Collections;
|
|
|
|
|
using namespace Platform;
|
|
|
|
|
using namespace Platform::Collections;
|
|
|
|
|
|
|
|
|
|
namespace VBA10
|
|
|
|
|
{
|
2015-07-29 21:14:08 +00:00
|
|
|
ROMDBEntry::ROMDBEntry(int locationtype, Platform::String^ displayname, Platform::String^ filename, Platform::String^ folderpath,
|
|
|
|
|
Platform::String^ token, Platform::String^ snapshoturi)
|
|
|
|
|
:_locationType(locationtype), _displayName(displayname), _fileName(filename), _folderPath(folderpath),
|
|
|
|
|
_token(token), _snapshotUri(snapshoturi)
|
2015-06-18 17:33:07 +00:00
|
|
|
{
|
|
|
|
|
_lastPlayed = DateTime{ 0 };
|
2015-06-24 17:33:03 +00:00
|
|
|
_lastSaveIndex = 0;
|
2015-06-18 17:33:07 +00:00
|
|
|
_autoSaveIndex = 0;
|
2015-06-23 13:41:49 +00:00
|
|
|
_snapshot = nullptr;
|
2015-08-02 00:52:32 +00:00
|
|
|
AutoLoadLastState = true; //default to true except when import save
|
|
|
|
|
|
2015-06-18 17:33:07 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-29 21:14:08 +00:00
|
|
|
ROMDBEntry::ROMDBEntry(int locationtype, Platform::String^ displayname, Platform::String^ filename, Platform::String^ folderpath,
|
|
|
|
|
Platform::String^ token, DateTime lastplayed, int lastsaveindex, int autosaveindex, Platform::String^ snapshoturi)
|
|
|
|
|
:_locationType(locationtype), _displayName(displayname), _fileName(filename), _folderPath(folderpath),
|
|
|
|
|
_token(token), _lastPlayed(lastplayed), _lastSaveIndex(lastsaveindex), _autoSaveIndex(autosaveindex), _snapshotUri(snapshoturi)
|
2015-06-18 17:33:07 +00:00
|
|
|
{
|
2015-06-24 17:33:03 +00:00
|
|
|
|
2015-06-23 13:41:49 +00:00
|
|
|
_snapshot = nullptr;
|
2015-08-02 00:52:32 +00:00
|
|
|
AutoLoadLastState = true;
|
2015-06-18 17:33:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|