From: Jeffrey D. <ha...@us...> - 2003-09-27 05:49:19
|
Log Message: ----------- No Movies/No Splash options Modified Files: -------------- /cvsroot/decaldev/source/DenAgent: DenAgent.rc OptionsDlg.cpp resource.h Revision Data ------------- Index: DenAgent.rc =================================================================== RCS file: /cvsroot/decaldev/source/DenAgent/DenAgent.rc,v retrieving revision 1.75 retrieving revision 1.76 diff -u -d -r1.75 -r1.76 --- DenAgent.rc 31 Aug 2003 06:05:46 -0000 1.75 +++ DenAgent.rc 27 Sep 2003 05:49:07 -0000 1.76 @@ -183,6 +183,10 @@ WS_TABSTOP,21,143,71,11 GROUPBOX "Client Patches",IDC_STATIC,14,122,244,35 PUSHBUTTON "?",IDC_PATCHHELP,241,135,10,15 + CONTROL "No Movies",IDC_NOMOVIES,"Button",BS_AUTOCHECKBOX | + WS_TABSTOP,101,130,67,11 + CONTROL "No Logos",IDC_NOLOGOS,"Button",BS_AUTOCHECKBOX | + WS_TABSTOP,101,143,67,11 END IDD_DOWNLOADER DIALOG 0, 0, 202, 86 Index: OptionsDlg.cpp =================================================================== RCS file: /cvsroot/decaldev/source/DenAgent/OptionsDlg.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- OptionsDlg.cpp 31 Aug 2003 06:05:46 -0000 1.24 +++ OptionsDlg.cpp 27 Sep 2003 05:49:07 -0000 1.25 @@ -163,7 +163,6 @@ if( dwViewMode == 1 ) ::SendMessage( GetDlgItem( IDC_VIEWMULTI )->m_hWnd, BM_SETCHECK, 1, 0 ); - // haz - add checks for Dual/Windowed Mode if( key.QueryDWORDValue( "AllowWindowed", dwViewMode )== ERROR_SUCCESS ) if( dwViewMode == 1 ) { @@ -176,7 +175,18 @@ ::SendMessage( GetDlgItem( IDC_DUALLOG )->m_hWnd, BM_SETCHECK, 1, 0 ); } - // haz - added old inject option + if( key.QueryDWORDValue( "NoMovies", dwViewMode )== ERROR_SUCCESS ) + if( dwViewMode == 1 ) + { + ::SendMessage( GetDlgItem( IDC_NOMOVIES )->m_hWnd, BM_SETCHECK, 1, 0 ); + } + + if( key.QueryDWORDValue( "NoSplash", dwViewMode )== ERROR_SUCCESS ) + if( dwViewMode == 1 ) + { + ::SendMessage( GetDlgItem( IDC_NOLOGOS )->m_hWnd, BM_SETCHECK, 1, 0 ); + } + if( key.QueryDWORDValue( "OldInjection", dwViewMode )== ERROR_SUCCESS ) if( dwViewMode == 1 ) { @@ -295,14 +305,13 @@ else key.SetDWORDValue("AlphaBlendMode", 0x1L); - // dual/window bool bMessage = false; DWORD dwViewMode = 0; if( ::SendMessage( GetDlgItem( IDC_WINDOWED )->m_hWnd, BM_GETCHECK, 0, 0 ) ) { // enabled, but old inject is on if( ! m_bClientPatchesEnabled ) - MessageBox( "One drawback of the old injection method is that Decal is not loaded before Asheron's Call.\nThis means the dual log and windowed mode fixes will not work.", "Decal Agent", MB_OK ), bMessage = true; + MessageBox( "One drawback of the old injection method is that Decal is not loaded before Asheron's Call.\nThis means any client patches will not work.", "Decal Agent", MB_OK ), bMessage = true; key.SetDWORDValue( "AllowWindowed", 0x1L ); } @@ -315,7 +324,7 @@ // enabled, but old inject is on if( ! m_bClientPatchesEnabled ) if( ! bMessage ) - MessageBox( "One drawback of the old injection method is that Decal is not loaded before Asheron's Call.\nThis means the dual log and windowed mode fixes will not work.", "Decal Agent", MB_OK ), bMessage = true; + MessageBox( "One drawback of the old injection method is that Decal is not loaded before Asheron's Call.\nThis means any client patches will not work.", "Decal Agent", MB_OK ), bMessage = true; key.SetDWORDValue( "AllowDualLog", 0x1L ); } @@ -323,6 +332,33 @@ else key.SetDWORDValue( "AllowDualLog", 0x0L ); + if( ::SendMessage( GetDlgItem( IDC_NOLOGOS )->m_hWnd, BM_GETCHECK, 0, 0 ) ) + { + // enabled, but old inject is on + if( ! m_bClientPatchesEnabled ) + if( ! bMessage ) + MessageBox( "One drawback of the old injection method is that Decal is not loaded before Asheron's Call.\nThis means any client patches will not work.", "Decal Agent", MB_OK ), bMessage = true; + + key.SetDWORDValue( "NoMovies", 0x1L ); + } + + else + key.SetDWORDValue( "NoMovies", 0x0L ); + + if( ::SendMessage( GetDlgItem( IDC_NOLOGOS )->m_hWnd, BM_GETCHECK, 0, 0 ) ) + { + // enabled, but old inject is on + if( ! m_bClientPatchesEnabled ) + if( ! bMessage ) + MessageBox( "One drawback of the old injection method is that Decal is not loaded before Asheron's Call.\nThis means any client patches will not work.", "Decal Agent", MB_OK ), bMessage = true; + + key.SetDWORDValue( "NoSplash", 0x1L ); + } + + else + key.SetDWORDValue( "NoSplash", 0x0L ); + + // cbt hook injection if( ::SendMessage(GetDlgItem(IDC_OLDINJECT)->m_hWnd, BM_GETCHECK, 0, 0) ) { @@ -462,6 +498,8 @@ { ::EnableWindow( GetDlgItem( IDC_WINDOWED )->m_hWnd, FALSE ); ::EnableWindow( GetDlgItem( IDC_DUALLOG )->m_hWnd, FALSE ); + ::EnableWindow( GetDlgItem( IDC_NOMOVIES )->m_hWnd, FALSE ); + ::EnableWindow( GetDlgItem( IDC_NOLOGOS )->m_hWnd, FALSE ); m_bClientPatchesEnabled = false; } @@ -469,6 +507,8 @@ { ::EnableWindow( GetDlgItem( IDC_WINDOWED )->m_hWnd, TRUE ); ::EnableWindow( GetDlgItem( IDC_DUALLOG )->m_hWnd, TRUE ); + ::EnableWindow( GetDlgItem( IDC_NOMOVIES )->m_hWnd, TRUE ); + ::EnableWindow( GetDlgItem( IDC_NOLOGOS )->m_hWnd, TRUE ); m_bClientPatchesEnabled = true; } } Index: resource.h =================================================================== RCS file: /cvsroot/decaldev/source/DenAgent/resource.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- resource.h 31 Aug 2003 06:05:46 -0000 1.23 +++ resource.h 27 Sep 2003 05:49:07 -0000 1.24 @@ -84,6 +84,9 @@ #define IDC_WINDOWED 1056 #define IDC_BUTTON2 1057 #define IDC_PATCHHELP 1057 +#define IDC_NOMOVIES 1058 +#define IDC_NOMOVIES2 1059 +#define IDC_NOLOGOS 1059 #define ID_SYSTRAY_CONFIGURE 32771 #define ID_SYSTRAY_EXIT 32772 @@ -93,7 +96,7 @@ #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NEXT_RESOURCE_VALUE 152 #define _APS_NEXT_COMMAND_VALUE 32776 -#define _APS_NEXT_CONTROL_VALUE 1058 +#define _APS_NEXT_CONTROL_VALUE 1059 #define _APS_NEXT_SYMED_VALUE 105 #endif #endif |