This commit is contained in:
Steve Checkoway
2007-05-08 18:37:13 +00:00
parent e7562b27a3
commit f86bc2e24e
5 changed files with 46 additions and 5 deletions
+2 -1
View File
@@ -166,7 +166,8 @@ SpecialFiles.cpp SpecialFiles.h \
ProductInfo.h
LoadingWindow = arch/LoadingWindow/LoadingWindow.cpp \
arch/LoadingWindow/LoadingWindow.h
arch/LoadingWindow/LoadingWindow.h \
arch/LoadingWindow/LoadingWindow_Null.h
if HAVE_GTK
LoadingWindow += arch/LoadingWindow/LoadingWindow_Gtk.cpp arch/LoadingWindow/LoadingWindow_Gtk.h \
@@ -7,9 +7,9 @@
LoadingWindow *LoadingWindow::Create()
{
if( !PREFSMAN->m_bShowLoadingWindow )
return new LoadingWindow;
return new LoadingWindow_Null;
#if defined(UNIX) && !defined(HAVE_GTK)
return new LoadingWindow;
return new LoadingWindow_Null;
#endif
/* Don't load NULL by default. */
const RString drivers = "xbox,win32,cocoa,gtk";
@@ -37,7 +37,7 @@ LoadingWindow *LoadingWindow::Create()
#ifdef USE_LOADING_WINDOW_XBOX
if( !DriversToTry[i].CompareNoCase("Xbox") ) ret = new LoadingWindow_Xbox;
#endif
if( !DriversToTry[i].CompareNoCase("Null") ) ret = new LoadingWindow;
if( !DriversToTry[i].CompareNoCase("Null") ) ret = new LoadingWindow_Null;
if( ret == NULL )
@@ -13,7 +13,7 @@ public:
virtual ~LoadingWindow() { }
virtual void Paint() { }
virtual void SetText( RString str ) { }
virtual void SetText( RString str ) = 0;
virtual void SetIcon( const RageSurface *pIcon ) { }
};
@@ -0,0 +1,39 @@
#ifndef LOADING_WINDOW_NULL_H
#define LOADING_WINDOW_NULL_H
#include "LoadingWindow.h"
class LoadingWindow_Null: public LoadingWindow
{
public:
void SetText( RString str ) { }
};
#define USE_LOADING_WINDOW_NULL
#endif
/*
* (c) 2003-2004 Glenn Maynard
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
+1
View File
@@ -55,6 +55,7 @@
#endif
/* All use these. */
#include "LoadingWindow/LoadingWindow_Null.h"
#include "MemoryCard/MemoryCardDriver_Null.h"
#endif