Esempio n. 1
0
void CheaterApp::Load_Database()
{
	// load database info
	_cheat_file.Load_File( "inis\\shark_codelist.inf" );
	
	Show_Game_List();
	Show_Cheats_List();


	// load save data
	Load_Init(1);
}
Esempio n. 2
0
/**Function*************************************************************

  Synopsis    [Starts all the packages.]

  Description []
               
  SideEffects []

  SeeAlso     []

***********************************************************************/
void Abc_FrameInit( Abc_Frame_t * pAbc )
{
    Cmd_Init( pAbc );
    Cmd_CommandExecute( pAbc, "set checkread" ); 
    Io_Init( pAbc );
    Abc_Init( pAbc );
    Fpga_Init( pAbc );
    Map_Init( pAbc );
    Mio_Init( pAbc );
    Super_Init( pAbc );
    Libs_Init( pAbc );
    Load_Init( pAbc );
    Scl_Init( pAbc );
    Test_Init( pAbc );
#ifdef USE_ABC2
    Abc2_Init( pAbc );
#endif
#ifdef USE_ABC85
    Abc85_Init( pAbc );
#endif
    EXT_ABC_INIT(pAbc) // plugin for external functionality
}
Esempio n. 3
0
void CheaterApp::Dlg_Command (HWND hwnd, int controlID, int command)
{
	//char statusMessage[64];

	switch (controlID)
	{
		case IDC_GAME_LIST:
			if( command == LBN_SELCHANGE )
			{
				_game_selected = _game_list.GetSelection();


				// rebuild cheat list for new game
				Show_Cheats_List();
			}
			break;

	
		case IDC_RELOAD_LIST:
			if( command == BN_CLICKED )
			{
				Save_Init( _ini_current );


				// Reload entire file
				Load_Database();
			}
			break;


		case IDC_SEARCH_MEMORY:
			{
#if 1
				CHEAT_INFO info;

				_search_dlg.Init( info );
				_search_dlg.Create( _hInst );
#endif
			}
			break;


		case IDC_EDIT_MEMORY:
			{
				_shark_cheater.Dump_Memory();
				_shark_cheater.Edit_Memory( _hex_editor );
				_shark_cheater.Load_Memory();
			}
			break;


		case IDC_SEND_CHEATS:
			if( command == BN_CLICKED )
			{
				_cheat_notes.SetString( "Cheats currently:\r\n\r\nON - ON - ON" );
				_send_cheats = 1;


				Send_Cheats();
				Save_Init( _ini_current );
			}
			break;


		case IDC_STOP_CHEATS:
			if( command == BN_CLICKED )
			{
				_cheat_notes.SetString( "Cheats currently:\r\n\r\nOFF - OFF - OFF" );
				_send_cheats = 0;


				Save_Init( _ini_current );
			}
			break;


		case IDC_ADD_CHEATS:
			{
				_edit_dlg.Init( _cheat_file.Get_Game_Name( _game_selected ) );
				_edit_dlg.Create( _hInst );


				// Reload entire file
				Load_Database();
			}
			break;


		case IDC_INI_1:
			{
				_ini_1.SetPushButton(1);
				_ini_2.SetPushButton(0);
				_ini_3.SetPushButton(0);


				Save_Init( _ini_current );
				Load_Init( 1 );
				_ini_current = 1;
			}
			break;

		
		case IDC_INI_2:
			{
				_ini_1.SetPushButton(0);
				_ini_2.SetPushButton(1);
				_ini_3.SetPushButton(0);


				Save_Init( _ini_current );
				Load_Init( 2 );
				_ini_current = 2;
			}
			break;

		
		case IDC_INI_3:
			{
				_ini_1.SetPushButton(0);
				_ini_2.SetPushButton(0);
				_ini_3.SetPushButton(1);


				Save_Init( _ini_current );
				Load_Init( 3 );
				_ini_current = 3;
			}
			break;

		
		default:
			break;
    }
}