// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // $Id:$ // // Copyright (C) 1993-1996 by id Software, Inc. // // This source is available for distribution and/or modification // only under the terms of the DOOM Source Code License as // published by id Software. All rights reserved. // // The source is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License // for more details. // // $Log:$ // // DESCRIPTION: // Main program, simply calls D_DoomMain high level loop. // //----------------------------------------------------------------------------- static const char rcsid[] = "$Id: i_main.c,v 1.4 1997/02/03 22:45:10 b1 Exp $"; #include "SDL.h" #include "doomdef.h" #include "m_argv.h" #include "d_main.h" #include //#include //Declare usbd module // extern unsigned char usbd[]; extern unsigned int size_usbd; //Declare usbhdfsd module // extern unsigned char usbhdfsd[]; extern unsigned int size_usbhdfsd; static char s_pUDNL [] __attribute__( ( section( ".data" ), aligned( 1 ) ) ) = "rom0:UDNL rom0:EELOADCNF"; int main ( int argc, char** argv ) { myargc = argc; myargv = argv; /* SifInitRpc(0); SifExitIopHeap(); SifLoadFileExit(); SifExitRpc(); SifResetIop(); SifIopReset(s_pUDNL, 0); SifInitRpc(0); */ // USB mass support //Load embedded modules int ret; SifExecModuleBuffer(usbd, size_usbd, 0, NULL, &ret); SifExecModuleBuffer(usbhdfsd, size_usbhdfsd, 0, NULL, &ret); D_DoomMain (); return 0; }