/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/r3795-ramdump/pcsx2/System/PS2RamProvider.cpp
ViewVC logotype

Diff of /branch/debug/0.X/0.9.X/0.9.7/r3795-ramdump/pcsx2/System/PS2RamProvider.cpp

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

revision 254 by william, Thu Sep 30 03:30:53 2010 UTC revision 255 by william, Thu Sep 30 07:23:18 2010 UTC
# Line 98  bool PS2RamProvider::IsRamAvailable() Line 98  bool PS2RamProvider::IsRamAvailable()
98          return _IsRamAvailable && !this->IsRamFrozen();          return _IsRamAvailable && !this->IsRamFrozen();
99  }  }
100    
101  bool PS2RamProvider::UpdateRamLocation(unsigned int address, wxString data)  bool PS2RamProvider::UpdateRamLocation(u32 address, u32 data)
102  {  {
103          unsigned long memory_patch = address;          u32 memory_patch = address;
104          unsigned long data_patch =(unsigned int)wxStringToHexInt(data);          u32 data_patch = data;
105          try {                    try {          
106                  memWrite32( memory_patch,data_patch );                  memWrite32( memory_patch, data );
107                  wxMessageBox( wxString::Format(wxString::FromAscii("Successfully Patched Address: 0x%08x with Data: 0x%08x"),memory_patch,data_patch),wxString::FromAscii("Patch Success"),wxICON_EXCLAMATION );                  wxMessageBox( wxString::Format(wxString::FromAscii("Successfully Patched Address: 0x%08x with Data: 0x%08x"),memory_patch,data_patch),wxString::FromAscii("Patch Success"),wxICON_EXCLAMATION );
108                  return true;                  return true;
109          }          }

Legend:
Removed from v.254  
changed lines
  Added in v.255

  ViewVC Help
Powered by ViewVC 1.1.22