cleanup
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#include "RageUtil.h"
|
#include "RageUtil.h"
|
||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "arch/arch.h"
|
|
||||||
#include "RageThreads.h"
|
#include "RageThreads.h"
|
||||||
|
|
||||||
#if !defined(SMPACKAGE)
|
#if !defined(SMPACKAGE)
|
||||||
@@ -27,7 +26,7 @@ void Dialog::Init()
|
|||||||
if( g_pImpl != NULL )
|
if( g_pImpl != NULL )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
g_pImpl = MakeDialogDriver();
|
g_pImpl = DialogDriver::Create();
|
||||||
|
|
||||||
/* DialogDriver_Null should have worked, at least. */
|
/* DialogDriver_Null should have worked, at least. */
|
||||||
ASSERT( g_pImpl != NULL );
|
ASSERT( g_pImpl != NULL );
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ RegisterDialogDriver::RegisterDialogDriver( const istring &sName, CreateDialogDr
|
|||||||
|
|
||||||
REGISTER_DIALOG_DRIVER_CLASS( Null );
|
REGISTER_DIALOG_DRIVER_CLASS( Null );
|
||||||
|
|
||||||
DialogDriver *MakeDialogDriver()
|
DialogDriver *DialogDriver::Create()
|
||||||
{
|
{
|
||||||
RString sDrivers = "win32,cocoa,null";
|
RString sDrivers = "win32,cocoa,null";
|
||||||
vector<RString> asDriversToTry;
|
vector<RString> asDriversToTry;
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
class DialogDriver
|
class DialogDriver
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
static DialogDriver *Create();
|
||||||
|
|
||||||
virtual void Error( RString sMessage, RString sID ) { printf("Error: %s\n", sMessage.c_str()); }
|
virtual void Error( RString sMessage, RString sID ) { printf("Error: %s\n", sMessage.c_str()); }
|
||||||
virtual void OK( RString sMessage, RString sID ) {}
|
virtual void OK( RString sMessage, RString sID ) {}
|
||||||
virtual Dialog::Result AbortRetryIgnore( RString sMessage, RString sID ) { return Dialog::ignore; }
|
virtual Dialog::Result AbortRetryIgnore( RString sMessage, RString sID ) { return Dialog::ignore; }
|
||||||
|
|||||||
Reference in New Issue
Block a user