00001 00105 /* Copyright (C) 1998-2003 Lionel ULMER, Darryl Luff. 00106 * 00107 * This program is free software; you can redistribute it and/or modify 00108 * it under the terms of the GNU General Public License as published by 00109 * the Free Software Foundation; either version 2 of the License, or 00110 * (at your option) any later version. 00111 * 00112 * This program is distributed in the hope that it will be useful, 00113 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00114 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00115 * GNU General Public License for more details. 00116 * 00117 * You should have received a copy of the GNU General Public License 00118 * along with this program; if notload, write to the Free Software 00119 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00120 */ 00121 00122 #include "../config.h" 00123 00124 #include "guiapi.h" 00125 #include "luaif.h" 00126 00128 int main(int argc, char *argv[]) 00129 { 00130 #ifdef USE_LUA 00131 luaif_init(); 00132 #endif 00133 cfg_init(); 00134 00135 gui_init(argc, argv); 00136 00137 /* Load config */ 00138 cfg_parse_cmdline(argc, argv); 00139 00140 /* Main loop */ 00141 return gui_run(); 00142 }