From e01cfedd2bc6f750666f8e84cbca0710e8724f10 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Sat, 5 Dec 2009 09:40:32 +0000 Subject: [PATCH] New dialog for internal hacks. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2314 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/Config.h | 4 ++++ pcsx2/R3000A.cpp | 3 --- pcsx2/gui/AppInit.cpp | 18 ++++++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/pcsx2/Config.h b/pcsx2/Config.h index 5cd12f83f4..548806c141 100644 --- a/pcsx2/Config.h +++ b/pcsx2/Config.h @@ -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 + diff --git a/pcsx2/R3000A.cpp b/pcsx2/R3000A.cpp index a9a8aaa005..83bcf780e1 100644 --- a/pcsx2/R3000A.cpp +++ b/pcsx2/R3000A.cpp @@ -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. diff --git a/pcsx2/gui/AppInit.cpp b/pcsx2/gui/AppInit.cpp index 21e2169118..108550b737 100644 --- a/pcsx2/gui/AppInit.cpp +++ b/pcsx2/gui/AppInit.cpp @@ -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?!