New dialog for internal hacks.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2314 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-12-05 09:40:32 +00:00
parent 3fcd2c9aee
commit e01cfedd2b
3 changed files with 22 additions and 3 deletions

View File

@ -627,3 +627,7 @@ TraceLogFilters& SetTraceConfig();
// games. Note: currently PS1 games will error out even without this
// commented, so this is for development purposes only.
//#define ENABLE_LOADING_PS1_GAMES
// Change to 1 to enable SIF wakeup hack:
#define IOP_ENABLE_SIF_HACK 0

View File

@ -202,9 +202,6 @@ static __forceinline void IopTestEvent( IopEventId n, void (*callback)() )
psxSetNextBranch( psxRegs.sCycle[n], psxRegs.eCycle[n] );
}
// Change to 1 to enable SIF wakeup hack:
#define IOP_ENABLE_SIF_HACK 0
static __forceinline void sifHackInterrupt()
{
// No reason -- just that sometimes the SIF fell asleep, and this wakes it up.

View File

@ -79,6 +79,24 @@ void Pcsx2App::ReadUserModeSettings()
wxString groupname( wxsFormat( L"CWD.%08x", hashres ) );
if (IOP_ENABLE_SIF_HACK == 1)
{
wxDialogWithHelpers hackedVersion( NULL, wxID_ANY, _("It will devour your young! - PCSX2 Shub-Niggurath edition"), false );
hackedVersion.SetIdealWidth( 575 );
hackedVersion.SetSizer( new wxBoxSizer( wxVERTICAL ) );
hackedVersion += new pxStaticText( &hackedVersion,
L"NOTICE!! This is a version of Pcsx2 with hacks enabled meant for developers only. "
L"It will likely crash on all games, devour your young, and make you an object of shame and disgrace among your family and friends. "
L"Do not report any bugs with this version if you received this popup. \n\nYou have been warned. ", wxALIGN_CENTER
);
hackedVersion += new wxButton( &hackedVersion, wxID_OK ) | pxSizerFlags::StdCenter();
hackedVersion.Fit();
hackedVersion.CentreOnScreen();
hackedVersion.ShowModal();
}
if( m_ForceWizard || !conf_usermode->HasGroup( groupname ) )
{
// Pre-Alpha Warning! Why didn't I think to add this sooner?!