/* * UAE - The Un*x Amiga Emulator * * Interface to the Tcl/Tk GUI * * Copyright 1996 Bernd Schmidt */ #include "sysconfig.h" #include "sysdeps.h" #include "options.h" #include "gui.h" void gui_init (int argc, char **argv) { } int gui_open (void) { return -1; } void gui_notify_state (int state) { } int gui_update (void) { return 0; } void gui_exit (void) { } void gui_fps (int fps, int idle) { gui_data.fps = fps; gui_data.idle = idle; } void gui_led (int led, int on) { } void gui_hd_led (int led) { static int resetcounter; int old = gui_data.hd; if (led == 0) { resetcounter--; if (resetcounter > 0) return; } gui_data.hd = led; resetcounter = 6; if (old != gui_data.hd) gui_led (5, gui_data.hd); } void gui_cd_led (int led) { static int resetcounter; int old = gui_data.cd; if (led == 0) { resetcounter--; if (resetcounter > 0) return; } gui_data.cd = led; resetcounter = 6; if (old != gui_data.cd) gui_led (6, gui_data.cd); } void gui_filename (int num, const char *name) { } void gui_handle_events (void) { } void gui_display(int shortcut) { } void gui_message (const char *format,...) { char msg[2048]; va_list parms; va_start (parms,format); vsprintf ( msg, format, parms); va_end (parms); write_log (msg); }