-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
executable file
·56 lines (43 loc) · 1.17 KB
/
settings.h
1
#ifndef _SETTINGS_H_#define _SETTINGS_H_#ifdef _SETTINGS_C_struct Global_settings{ char reg_dis_mode[16]; /*display modes for each register*/ long hexmode; /*hex address or dec*/ long symmode; /*symbolic mode as in menu item*/ long hex_mem_dump; /*which format was used for the dump window hex or dec*/ long active_window; /*which of the windows was the active one (0 to NumWindows-1)*/ long expired; /*well the program is getting a little old*/ long restricted; /*if set only those windows which are visible can be selected in window menu*/};struct PerWindow_Settings{ short txFont; Style txFace; short txSize; Rect strucRect; Rect contRect; Boolean visible;};static struct ss{ struct Global_settings glob; struct PerWindow_Settings window[NumWindows]; /*state of each window*/} **h_save_state, *save_state;static long secure_mode = 0;#define SAVESTATE_RESTYPE ((ResType)'SVST')#define SAVESTATE_RESID ((short)130) /*inc this if struct save_state changes*/#endif _SETTINGS_C_/*Functions*/void savestate( long restricted);void restorestate( long If_Res_in_Doc);void open_prefs_file(void);void close_prefs_file(void);#endif _SETTINGS_H_