From ad4866e0cb1f7ddefbe1e31a890741e4cbc50181 Mon Sep 17 00:00:00 2001 From: aliaspider Date: Tue, 28 Oct 2014 06:47:04 +0100 Subject: remove unused files --- source/nds/ds2_main.c | 68 --------------------------------------------------- 1 file changed, 68 deletions(-) delete mode 100644 source/nds/ds2_main.c (limited to 'source/nds/ds2_main.c') diff --git a/source/nds/ds2_main.c b/source/nds/ds2_main.c deleted file mode 100644 index af81df3..0000000 --- a/source/nds/ds2_main.c +++ /dev/null @@ -1,68 +0,0 @@ -/* ds2_main.c - * - * Copyright (C) 2010 dking - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public Licens e as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - */ - -#include "port.h" - -#include -#include "console.h" -#include "fs_api.h" -#include "ds2io.h" -#include "ds2_cpu.h" -#include "ds2_timer.h" -#include "ds2_malloc.h" -#include "ds2sound.h" -#include "gui.h" - -#define BLACK_COLOR RGB15(0, 0, 0) -#define WHITE_COLOR RGB15(31, 31, 31) - -extern int sfc_main (int argc, char **argv); - -#if 0 -void ddump_mem(unsigned char* addr, unsigned int len) -{ - unsigned int i; - - for(i= 0; i < len; i++) - { - if(i%16 == 0) cprintf("\n%08x: ", i); - cprintf("%02x ", addr[i]); - } -} -#endif - -void ds2_main(void) -{ - int err; - HighFrequencyCPU(); - //Initial video and audio and other input and output - err = ds2io_initb(DS2_BUFFER_SIZE, SND_SAMPLE_RATE, 0, 0); - if(err) goto _failure; - - //Initial file system - err = fat_init(); - if(err) goto _failure; - - //go to user main funtion - sfc_main (0, 0); - -_failure: - ds2_plug_exit(); -} - -- cgit v1.2.3