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:
@@ -4,7 +4,7 @@
|
||||
#include "RageLog.h"
|
||||
#include "arch/arch_default.h"
|
||||
|
||||
LoadingWindow *MakeLoadingWindow()
|
||||
LoadingWindow *LoadingWindow::Create()
|
||||
{
|
||||
if( !PREFSMAN->m_bShowLoadingWindow )
|
||||
return new LoadingWindow_Null;
|
||||
|
||||
@@ -7,6 +7,8 @@ struct RageSurface;
|
||||
class LoadingWindow
|
||||
{
|
||||
public:
|
||||
static LoadingWindow *Create();
|
||||
|
||||
virtual RString Init() { return RString(); }
|
||||
virtual ~LoadingWindow() { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user