2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
9 /*********************************************************************************************/
12 #include <aros/macros.h>
15 #include <aros/debug.h>
17 /*********************************************************************************************/
19 void InitPrefs(BOOL use
, BOOL save
)
24 Amiga2Date(tv
.tv_secs
, &clockdata
);
26 if (use
|| save
) Cleanup(NULL
);
29 /*********************************************************************************************/
35 secs
= Date2Amiga(&clockdata
);
37 TimerIO
->tr_node
.io_Command
= TR_SETSYSTIME
;
38 TimerIO
->tr_time
.tv_secs
= secs
;
39 TimerIO
->tr_time
.tv_micro
= 0;
41 DoIO(&TimerIO
->tr_node
);
46 /*********************************************************************************************/
52 secs
= Date2Amiga(&clockdata
);
59 /*********************************************************************************************/
61 void RestorePrefs(void)
63 InitPrefs(FALSE
, FALSE
);
66 /*********************************************************************************************/