2009-09-08 12:08:10 +00:00
|
|
|
/* PCSX2 - PS2 Emulator for PCs
|
2010-05-03 14:08:02 +00:00
|
|
|
* Copyright (C) 2002-2010 PCSX2 Dev Team
|
2010-04-25 00:31:27 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* PCSX2 is free software: you can redistribute it and/or modify it under the terms
|
|
|
|
* of the GNU Lesser General Public License as published by the Free Software Found-
|
|
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
2009-08-20 14:34:48 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE. See the GNU General Public License for more details.
|
2009-08-20 14:34:48 +00:00
|
|
|
*
|
2009-09-08 12:08:10 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along with PCSX2.
|
|
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
2009-08-20 14:34:48 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Dependencies.h"
|
|
|
|
|
2009-09-29 19:16:00 +00:00
|
|
|
// --------------------------------------------------------------------------------------
|
2009-08-20 14:34:48 +00:00
|
|
|
// wxBaseTools.h
|
|
|
|
//
|
|
|
|
// This file is meant to contain utility classes for users of the wxWidgets library.
|
|
|
|
// All classes in this file are strictly dependent on wxBase libraries only, meaning
|
|
|
|
// you don't need to include or link against wxCore (GUI) to build them. For tools
|
|
|
|
// which require wxCore, see wxGuiTools.h
|
2009-09-29 19:16:00 +00:00
|
|
|
// --------------------------------------------------------------------------------------
|
2009-08-20 14:34:48 +00:00
|
|
|
|
2009-11-14 08:36:57 +00:00
|
|
|
extern void pxExplore( const wxString& path );
|
|
|
|
extern void pxExplore( const char *path );
|
|
|
|
|
|
|
|
extern void pxLaunch( const wxString& path );
|
|
|
|
extern void pxLaunch( const char *path );
|
2009-09-29 19:16:00 +00:00
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------
|
|
|
|
// wxDoNotLogInThisScope
|
|
|
|
// --------------------------------------------------------------------------------------
|
2009-08-20 14:34:48 +00:00
|
|
|
// This class is used to disable wx's sometimes inappropriate amount of forced error logging
|
|
|
|
// during specific activities. For example, when using wxDynamicLibrary to detect the
|
|
|
|
// validity of DLLs, wx will log errors for missing symbols. (sigh)
|
|
|
|
//
|
|
|
|
// Usage: Basic auto-cleanup destructor class. Create an instance inside a scope, and
|
|
|
|
// logging will be re-enabled when scope is terminated. :)
|
|
|
|
//
|
|
|
|
class wxDoNotLogInThisScope
|
|
|
|
{
|
|
|
|
DeclareNoncopyableObject(wxDoNotLogInThisScope);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool m_prev;
|
|
|
|
|
|
|
|
public:
|
|
|
|
wxDoNotLogInThisScope() :
|
|
|
|
m_prev( wxLog::EnableLogging( false ) )
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
~wxDoNotLogInThisScope()
|
|
|
|
{
|
|
|
|
wxLog::EnableLogging( m_prev );
|
|
|
|
}
|
|
|
|
};
|