From a74ba7d13cf33eb182f96cd3163b079197327c6a Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sun, 28 Sep 2008 15:58:26 +0000 Subject: [PATCH] Sleep timer --- winmain.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/winmain.cc b/winmain.cc index efa87d2..befa190 100644 --- a/winmain.cc +++ b/winmain.cc @@ -42,6 +42,7 @@ #include "boxstack.h" #include "command.h" #include "wol.h" +#include "vsleeptimer.h" void sighandler(int signalReceived); void shutdown(int code); @@ -60,6 +61,8 @@ VDR* vdr; Video* video; Audio* audio; Wol* wol; +Sleeptimer* sleeptimer; + bool wnd_fullscreen=false; bool wnd_topmost=false; @@ -150,8 +153,9 @@ INT WINAPI WinMain( HINSTANCE hinst , HINSTANCE previnst, LPSTR cmdline, int cmd boxstack = new BoxStack(); command = new Command(); wol = new Wol(); + sleeptimer = new Sleeptimer(); - if (!logger || !remote || !mtd || !led || !osd || !video || !audio || !boxstack || !command) + if (!logger || !remote || !mtd || !led || !osd || !video || !audio || !boxstack || !command || !sleeptimer) { ERROR_MSG("Could not create objects. Memory problems?\n"); shutdown(1); @@ -878,6 +882,11 @@ void shutdown(int code) logger->shutdown(); delete logger; } + if (sleeptimer) + { + delete sleeptimer; + logger->log("Core", Log::NOTICE, "Sleeptimer module shut down"); + } ExitProcess(0); } -- 2.39.2