4 #include <proto/exec.h>
10 void PM_LoadPrefsFile(STRPTR filename
, ULONG flags
, struct PopupMenuPrefs
*prefs
, struct PopupMenuPrefs
*defprefs
);
13 struct PopupMenuPrefs DefaultPrefs
= {
15 0, /* pmp_SubMenuDelay */
16 PMP_ANIM_NONE
, /* pmp_Animation */
17 PMP_PD_SCREENBAR
, /* pmp_PulldownPos */
18 FALSE
, /* pmp_Sticky */
19 FALSE
, /* pmp_SameHeight */
20 0, /* pmp_MenuBorder */
21 0, /* pmp_SelItemBorder */
22 0, /* pmp_SeparatorBar */
23 0, /* pmp_MenuTitles */
24 0, /* pmp_MenuItems */
29 2, /* pmp_Intermediate */
30 0, /* pmp_TextDisplace */
31 -30, /* pmp_ShadowR */
32 -30, /* pmp_ShadowG */
33 -30, /* pmp_ShadowB */
34 0, /* pmp_TransparencyR */
35 0, /* pmp_TransparencyG */
36 0, /* pmp_TransparencyB */
37 0, /* pmp_TransparencyBlur */
38 0, /* pmp_AnimationSpeed */
40 {0}, /* pmp_Reserved */
43 struct PopupMenuPrefs LoadedPrefs
;
45 struct PopupMenuPrefs
*PM_Prefs
= &DefaultPrefs
;
51 void PM_Prefs_Load(STRPTR file
)
53 PM_LoadPrefsFile(file
, 0, &LoadedPrefs
, &DefaultPrefs
);
54 PM_Prefs
= &LoadedPrefs
;
57 void __saveds __asm
PM_ReloadPrefs(void)
59 PM_Prefs_Load(PMP_PATH
);