comparison src/win32/ramwatch.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
comparison
equal deleted inserted replaced
0:8ced16adf2e1 1:f9f4f1b99eed
1 #ifndef RAMWATCH_H
2 #define RAMWATCH_H
3
4 bool ResetWatches();
5 void OpenRWRecentFile(int memwRFileNumber);
6 extern bool AutoRWLoad;
7 extern bool RWSaveWindowPos;
8 #define MAX_RECENT_WATCHES 5
9 extern char rw_recent_files[MAX_RECENT_WATCHES][1024];
10 extern bool AskSave();
11 extern int ramw_x;
12 extern int ramw_y;
13 extern bool RWfileChanged;
14
15 //Constants
16 #define AUTORWLOAD "RamWatchAutoLoad"
17 #define RWSAVEPOS "RamWatchSaveWindowPos"
18 #define RAMWX "RamwX"
19 #define RAMWY "RamwY"
20
21 // AddressWatcher is self-contained now
22 struct AddressWatcher
23 {
24 unsigned int Address; // hardware address
25 char Size;
26 char Type;
27 char* comment; // NULL means no comment, non-NULL means allocated comment
28 bool WrongEndian;
29 unsigned int CurValue;
30 };
31 #define MAX_WATCH_COUNT 256
32 extern AddressWatcher rswatches[MAX_WATCH_COUNT];
33 extern int WatchCount; // number of valid items in rswatches
34
35 extern char Watch_Dir[1024];
36
37 extern HWND RamWatchHWnd;
38 extern HACCEL RamWatchAccels;
39
40 bool InsertWatch(const AddressWatcher& Watch, char *Comment);
41 bool InsertWatch(const AddressWatcher& Watch, HWND parent=NULL); // asks user for comment
42 void Update_RAM_Watch();
43 bool Load_Watches(bool clear, const char* filename);
44 void RWAddRecentFile(const char *filename);
45
46 #endif