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

Contents of /branch/debug/0.X/0.9.X/0.9.7/r3795-ramdump/pcsx2/System/PS2RamProvider.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 255 - (show annotations) (download)
Thu Sep 30 07:23:18 2010 UTC (10 years, 2 months ago) by william
File MIME type: text/plain
File size: 992 byte(s)
attempt to implement memory patching -- memWrite32 seems to fail .... don't know why ....
1 // Class automatically generated by Dev-C++ New Class wizard
2
3 #ifndef PS2RamProvider_H
4 #define PS2RamProvider_H
5
6 #include <stdio.h>
7 #include <stdlib.h>
8 #include <time.h>
9 #include "Common.h"
10 #include "Patch.h"
11 #include "IRamProvider.h" // class's header file
12
13
14 /*
15 * No description
16 */
17 class PS2RamProvider : public IRamProvider
18 {
19 public:
20 // class constructor
21 PS2RamProvider();
22 PS2RamProvider(int ADDRESS_TABLE_SIZE);
23 //PS2RamProvider(int SizeOfRamInBytes);
24 //PS2RamProvider(unsigned char* Ram, int SizeOfRamInBytes);
25 // class destructor
26 ~PS2RamProvider();
27
28 virtual bool RefreshRam();
29 virtual bool IsRamAvailable();
30 virtual bool UpdateRamLocation(unsigned int address, u32 data);
31 //virtual unsigned char* GetRam();
32
33 unsigned int CurrentMemoryAddr;
34 int CurrentMemoryViewSize;
35 protected:
36 virtual void InitializeProvider();
37 private:
38 bool _IsRamAvailable;
39 int ADDR_TABLE_SIZE;
40
41 };
42
43 #endif // PS2RamProvider_H

  ViewVC Help
Powered by ViewVC 1.1.22