rlm@1: #ifndef RAMWATCH_H rlm@1: #define RAMWATCH_H rlm@1: rlm@1: bool ResetWatches(); rlm@1: void OpenRWRecentFile(int memwRFileNumber); rlm@1: extern bool AutoRWLoad; rlm@1: extern bool RWSaveWindowPos; rlm@1: #define MAX_RECENT_WATCHES 5 rlm@1: extern char rw_recent_files[MAX_RECENT_WATCHES][1024]; rlm@1: extern bool AskSave(); rlm@1: extern int ramw_x; rlm@1: extern int ramw_y; rlm@1: extern bool RWfileChanged; rlm@1: rlm@1: //Constants rlm@1: #define AUTORWLOAD "RamWatchAutoLoad" rlm@1: #define RWSAVEPOS "RamWatchSaveWindowPos" rlm@1: #define RAMWX "RamwX" rlm@1: #define RAMWY "RamwY" rlm@1: rlm@1: // AddressWatcher is self-contained now rlm@1: struct AddressWatcher rlm@1: { rlm@1: unsigned int Address; // hardware address rlm@1: char Size; rlm@1: char Type; rlm@1: char* comment; // NULL means no comment, non-NULL means allocated comment rlm@1: bool WrongEndian; rlm@1: unsigned int CurValue; rlm@1: }; rlm@1: #define MAX_WATCH_COUNT 256 rlm@1: extern AddressWatcher rswatches[MAX_WATCH_COUNT]; rlm@1: extern int WatchCount; // number of valid items in rswatches rlm@1: rlm@1: extern char Watch_Dir[1024]; rlm@1: rlm@1: extern HWND RamWatchHWnd; rlm@1: extern HACCEL RamWatchAccels; rlm@1: rlm@1: bool InsertWatch(const AddressWatcher& Watch, char *Comment); rlm@1: bool InsertWatch(const AddressWatcher& Watch, HWND parent=NULL); // asks user for comment rlm@1: void Update_RAM_Watch(); rlm@1: bool Load_Watches(bool clear, const char* filename); rlm@1: void RWAddRecentFile(const char *filename); rlm@1: rlm@1: #endif