This commit is contained in:
Glenn Maynard
2006-12-17 07:33:09 +00:00
parent fc6033d754
commit 50ca6633cb
3 changed files with 4 additions and 3 deletions
+1 -2
View File
@@ -6,7 +6,6 @@
#endif
#include "RageUtil.h"
#include "RageLog.h"
#include "arch/arch.h"
#include "RageThreads.h"
#if !defined(SMPACKAGE)
@@ -27,7 +26,7 @@ void Dialog::Init()
if( g_pImpl != NULL )
return;
g_pImpl = MakeDialogDriver();
g_pImpl = DialogDriver::Create();
/* DialogDriver_Null should have worked, at least. */
ASSERT( g_pImpl != NULL );
+1 -1
View File
@@ -15,7 +15,7 @@ RegisterDialogDriver::RegisterDialogDriver( const istring &sName, CreateDialogDr
REGISTER_DIALOG_DRIVER_CLASS( Null );
DialogDriver *MakeDialogDriver()
DialogDriver *DialogDriver::Create()
{
RString sDrivers = "win32,cocoa,null";
vector<RString> asDriversToTry;
+2
View File
@@ -7,6 +7,8 @@
class DialogDriver
{
public:
static DialogDriver *Create();
virtual void Error( RString sMessage, RString sID ) { printf("Error: %s\n", sMessage.c_str()); }
virtual void OK( RString sMessage, RString sID ) {}
virtual Dialog::Result AbortRetryIgnore( RString sMessage, RString sID ) { return Dialog::ignore; }