Make* -> Driver::Create. Having these floating in arch.h isn't
useful; if you create the class, you need the class definition to free it, and anyone creating a class is probably going to use it, too.
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
#include "MessageManager.h"
|
||||
#include "Foreach.h"
|
||||
#include "RageUtil_WorkerThread.h"
|
||||
#include "arch/arch.h"
|
||||
#include "arch/MemoryCard/MemoryCardDriver_Null.h"
|
||||
#include "LuaManager.h"
|
||||
|
||||
@@ -141,7 +140,7 @@ ThreadedMemoryCardWorker::ThreadedMemoryCardWorker():
|
||||
UsbStorageDevicesMutex("UsbStorageDevicesMutex")
|
||||
{
|
||||
if( g_bMemoryCards )
|
||||
m_pDriver = MakeMemoryCardDriver();
|
||||
m_pDriver = MemoryCardDriver::Create();
|
||||
else
|
||||
m_pDriver = new MemoryCardDriver_Null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user