Code: Alles auswählen
--- neutrino.cpp.new 2003-12-20 12:41:14.000000000 +0100
+++ neutrino.cpp 2003-12-20 12:59:54.000000000 +0100
@@ -53,6 +53,8 @@
#include "global.h"
#include "neutrino.h"
+#include <dbox/fp.h>
+
#include <daemonc/remotecontrol.h>
#include <driver/encoding.h>
@@ -2689,6 +2691,18 @@
void CNeutrinoApp::RealRun(CMenuWidget &mainMenu)
{
dprintf(DEBUG_NORMAL, "initialized everything\n");
+ int val = 0;
+ int fp = open("/dev/dbox/fp0",O_RDWR);
+ if (fp >= 0) {
+ ioctl(fp, FP_IOCTL_GET_VCR, &val);
+ close(fp);
+ if (val > 0) {
+ dprintf(DEBUG_NORMAL, "Switching to scart mode...\n");
+ lastMode = mode;
+ handleMsg(NeutrinoMessages::EVT_VCRCHANGED, VCR_STATUS_ON);
+ }
+ }
+
while( true )
{
uint msg; uint data;