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:
@@ -122,7 +122,7 @@ bool MemoryCardDriver::DoOneUpdate( bool bMount, vector<UsbStorageDevice>& vStor
|
||||
}
|
||||
|
||||
#include "arch/arch_default.h"
|
||||
MemoryCardDriver *MakeMemoryCardDriver()
|
||||
MemoryCardDriver *MemoryCardDriver::Create()
|
||||
{
|
||||
MemoryCardDriver *ret = NULL;
|
||||
|
||||
|
||||
@@ -75,6 +75,8 @@ struct UsbStorageDevice
|
||||
class MemoryCardDriver
|
||||
{
|
||||
public:
|
||||
static MemoryCardDriver *Create();
|
||||
|
||||
MemoryCardDriver() {}
|
||||
virtual ~MemoryCardDriver() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user