mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-18 20:14:23 +01:00
Introducing a mostly revamped Tracelog and Console log system. Various console log sources can now be toggled on/off on the fly, allowing end users to enable more verbose logging when they encounter problems. Both console and trace sources can be given automatic prefixing.
DevNotes: DevCon logs are now available in *Release* builds as well as Devel builds, and can be enabled from the Console window's "Sources" menu. They are disabled by default in Release builds, and are always enabled regardless of the ini setting in devel builds. Debug logs are still strictly available in debug builds only. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3609 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
1 parent
411454c03c
commit
912872af80
79 files changed
+2712
-1849
No files matched your search
@@ -23,9 +23,9 @@
|
||||
#include <signal.h>
|
||||
#endif
|
||||
|
||||
static wxString GetTranslation( const char* msg )
|
||||
static wxString GetTranslation( const wxChar* msg )
|
||||
{
|
||||
return msg ? wxGetTranslation( fromUTF8(msg) ) : wxEmptyString;
|
||||
return msg ? wxGetTranslation( msg ) : wxEmptyString;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
@@ -97,8 +97,11 @@ void pxTrap()
|
||||
|
||||
DEVASSERT_INLINE void pxOnAssert( const DiagnosticOrigin& origin, const wxChar* msg )
|
||||
{
|
||||
// Recursion guard: Allow at least one recursive call. This is useful because sometimes
|
||||
// we get meaningless assertions while unwinding stack traces after exceptions have occurred.
|
||||
|
||||
RecursionGuard guard( s_assert_guard );
|
||||
if( guard.IsReentrant() ) { return wxTrap(); }
|
||||
if (guard.Counter > 2) { return wxTrap(); }
|
||||
|
||||
// wxWidgets doesn't come with debug builds on some Linux distros, and other distros make
|
||||
// it difficult to use the debug build (compilation failures). To handle these I've had to
|
||||
@@ -132,10 +135,10 @@ __forceinline void pxOnAssert( const DiagnosticOrigin& origin, const char* msg)
|
||||
|
||||
BaseException::~BaseException() throw() {}
|
||||
|
||||
BaseException& BaseException::SetBothMsgs( const char* msg_diag )
|
||||
BaseException& BaseException::SetBothMsgs( const wxChar* msg_diag )
|
||||
{
|
||||
m_message_user = GetTranslation( msg_diag );
|
||||
return SetDiagMsg( fromUTF8(msg_diag) );
|
||||
return SetDiagMsg( msg_diag );
|
||||
}
|
||||
|
||||
BaseException& BaseException::SetDiagMsg( const wxString& msg_diag )
|
||||
|
||||
Reference in new issue
Block a user