Move controller creation to System class, switch shared_ptr to unique_ptr

This commit is contained in:
Connor McLaughlin
2019-12-14 23:20:24 +10:00
parent 5fd421860a
commit ea0845d5ad
14 changed files with 56 additions and 47 deletions

View File

@ -21,8 +21,8 @@ public:
MemoryCard(System* system);
~MemoryCard();
static std::shared_ptr<MemoryCard> Create(System* system);
static std::shared_ptr<MemoryCard> Open(System* system, std::string_view filename);
static std::unique_ptr<MemoryCard> Create(System* system);
static std::unique_ptr<MemoryCard> Open(System* system, std::string_view filename);
void Reset();
bool DoState(StateWrapper& sw);