mirror of https://github.com/PCSX2/pcsx2.git
Linux: All right, this will have to be fixed properly at some point, but hack in a printf so that Linux users can at least see the exact exception games crash on if they crash (Though it won't get logged at the moment).
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@833 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
267d964126
commit
c96334ddf2
|
@ -74,8 +74,18 @@ namespace Exception
|
||||||
virtual ~BaseException() throw()=0; // the =0; syntax forces this class into "abstract" mode.
|
virtual ~BaseException() throw()=0; // the =0; syntax forces this class into "abstract" mode.
|
||||||
explicit BaseException( const std::string& msg="Unhandled exception." ) :
|
explicit BaseException( const std::string& msg="Unhandled exception." ) :
|
||||||
m_message( msg )
|
m_message( msg )
|
||||||
{}
|
{
|
||||||
|
// Major hack. After a couple of tries, I'm still not managing to get Linux to catch these exceptions, so that the user actually
|
||||||
|
// gets the messages. Since Console is unavailable at this level, I'm using a simple printf, which of course, means it doesn't get
|
||||||
|
// logged. But at least the user sees it.
|
||||||
|
//
|
||||||
|
// I'll rip this out once I get Linux to actually catch these exceptions. Say, in BeginExecution or StartGui, like I would expect.
|
||||||
|
// -- arcum42
|
||||||
|
#ifdef __LINUX__
|
||||||
|
printf(msg.c_str());
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
const std::string& Message() const { return m_message; }
|
const std::string& Message() const { return m_message; }
|
||||||
const char* cMessage() const { return m_message.c_str(); }
|
const char* cMessage() const { return m_message.c_str(); }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue