X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=DocInterfaceActions.m;h=26542d690600f545991eb00b6fd0c943c68dd146;hb=refs%2Fheads%2Fmaster;hp=2b4c8482b987a9dafe1fec06210ff80243857c25;hpb=44e9757722f3ed40d15e0a7d06c50567d9664833;p=chaz%2Fthecheat diff --git a/DocInterfaceActions.m b/DocInterfaceActions.m index 2b4c848..26542d6 100644 --- a/DocInterfaceActions.m +++ b/DocInterfaceActions.m @@ -1,22 +1,13 @@ -// ********************************************************************** -// The Cheat - A universal game cheater for Mac OS X -// (C) 2003-2005 Chaz McGarvey (BrokenZipper) -// -// This program is free software; you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation; either version 1, or (at your option) -// any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -// +/* + * The Cheat - The legendary universal game trainer for Mac OS X. + * http://www.brokenzipper.com/trac/wiki/TheCheat + * + * Copyright (c) 2003-2011, Charles McGarvey et al. + * + * Distributable under the terms and conditions of the 2-clause BSD + * license; see the file COPYING for the legal text of the license. + */ #import "CheatDocument.h" @@ -182,6 +173,7 @@ return; } + [_cheatData process]; if ( [_searchData hasSearchedOnce] ) { NSBeginInformationalAlertSheet( @"Confirm target change.", @"OK", @"Cancel", nil, ibWindow, self, NULL, @selector(_confirmTargetChange:returnCode:context:), [[sender representedObject] retain], @@ -247,6 +239,7 @@ // do the search if ( [_searchData valueUsed] == TCGivenValue ) { variable = [[Variable alloc] initWithType:[_searchData variableType] integerSign:[_searchData integerSign]]; + [variable setProcess:_process]; [variable setStringValue:[ibSearchValueField stringValue]]; if ( [variable isValueValid] && [variable valueSize] > 0 ) { _status = TCSearchingStatus; @@ -254,8 +247,9 @@ [ibStatusBar setIndeterminate:NO]; [_searchData setSearchValue:variable]; + [_cheater searchForVariable:variable comparison:[_searchData searchOperator]]; + //[_cheater searchForVariable:[_searchData searchValue] comparison:[_searchData searchOperator]]; [variable release]; - [_cheater searchForVariable:[_searchData searchValue] comparison:[_searchData searchOperator]]; } else { NSBeginAlertSheet( @"Invalid Input", @"OK", nil, nil, ibWindow, nil, NULL, NULL, NULL, @@ -542,7 +536,6 @@ - (IBAction)ibAddCheatVariable:(id)sender { ChazLog( @"ibAddCheatVariable:" ); - Variable *var = [[Variable alloc] initWithType:[sender tag]]; // add the new variable to the doc data [_cheatData addVariable:var];