~eMain()
{
+ m_dvbdb->save();
m_scan = 0;
}
};
eLabel *lcd_label, *lcd_clock;
+int exit_code;
+
int main(int argc, char **argv)
{
#ifdef OBJECT_DEBUG
atexit(object_dump);
#endif
+ // set pythonpath if unset
+ setenv("PYTHONPATH", LIBDIR "/enigma2/python", 0);
+ printf("PYTHONPATH: %s\n", getenv("PYTHONPATH"));
+
ePython python;
eMain main;
eWidgetDesktop dsk(eSize(720, 576));
eWidgetDesktop dsk_lcd(eSize(132, 64));
- if (double_buffer)
+/* if (double_buffer)
{
eDebug(" - double buffering found, enable buffered graphics mode.");
dsk.setCompositionMode(eWidgetDesktop::cmBuffered);
- }
+ } */
wdsk = &dsk;
lcddsk = &dsk_lcd;
dsk_lcd.setDC(my_lcd_dc);
ePtr<gPixmap> m_pm;
- loadPNG(m_pm, "data/pal.png");
+ loadPNG(m_pm, DATADIR "/enigma2/pal.png");
if (!m_pm)
{
- eFatal("hi ghost, please copy pal.png into your ./data, thanks!");
+ eFatal("pal.png not found!");
} else
dsk.setPalette(*m_pm);
// eApp->exec();
- return 0;
+ return exit_code;
}
eWidgetDesktop *getDesktop()
void runMainloop()
{
- eApp->exec();
+ exit_code = eApp->exec();
}
-void quitMainloop()
+void quitMainloop(int exitCode)
{
- eApp->quit(0);
+ eApp->quit(exitCode);
}
void setLCD(const char *string)