/[pcsx2_0.9.7]/trunk/pcsx2/Patch.h
ViewVC logotype

Diff of /trunk/pcsx2/Patch.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 61 by william, Tue Sep 7 03:24:11 2010 UTC revision 62 by william, Tue Sep 7 11:08:22 2010 UTC
# Line 12  Line 12 
12   *  You should have received a copy of the GNU General Public License along with PCSX2.   *  You should have received a copy of the GNU General Public License along with PCSX2.
13   *  If not, see <http://www.gnu.org/licenses/>.   *  If not, see <http://www.gnu.org/licenses/>.
14   */   */
15  #ifndef __PATCH_H__  
16  #define __PATCH_H__  #pragma once
17    
18  #include "Pcsx2Defs.h"  #include "Pcsx2Defs.h"
19    #include "SysForwardDefs.h"
20    
21  #define MAX_PATCH 512  #define MAX_PATCH 512
22  #define MAX_CHEAT 1024  #define MAX_CHEAT 1024
# Line 56  namespace PatchFunc Line 57  namespace PatchFunc
57          PATCHTABLEFUNC cheat;          PATCHTABLEFUNC cheat;
58  }  }
59    
60  int  InitCheats(const wxString& name);  extern int  InitCheats(const wxString& name);
61  void inifile_command(bool isCheat, const wxString& cmd);  extern void inifile_command(bool isCheat, const wxString& cmd);
62  void inifile_trim(wxString& buffer);  extern void inifile_trim(wxString& buffer);
63    
64  int  InitPatches(const wxString& name);  extern int  InitPatches(const wxString& name, const Game_Data& game);
65  int  AddPatch(int Mode, int Place, int Address, int Size, u64 data);  extern int  AddPatch(int Mode, int Place, int Address, int Size, u64 data);
66  void ResetPatch(void);  extern void ResetPatch(void);
67  void ApplyPatch(int place = 1);  extern void ApplyPatch(int place = 1);
68  void ApplyCheat(int place = 1);  extern void ApplyCheat(int place = 1);
69  void _ApplyPatch(IniPatch *p);  extern void _ApplyPatch(IniPatch *p);
   
 #endif /* __PATCH_H__ */  
70    

Legend:
Removed from v.61  
changed lines
  Added in v.62

  ViewVC Help
Powered by ViewVC 1.1.22