1.1 --- a/src/mem.c Thu Jun 15 10:25:45 2006 +0000
1.2 +++ b/src/mem.c Sat Aug 19 01:51:16 2006 +0000
1.5 - * $Id: mem.c,v 1.13 2006-06-15 10:25:42 nkeynes Exp $
1.6 + * $Id: mem.c,v 1.14 2006-07-02 04:59:00 nkeynes Exp $
1.7 * mem.c is responsible for creating and maintaining the overall system memory
1.8 * map, as visible from the SH4 processor.
1.10 @@ -197,8 +197,10 @@
1.12 FILE *f = fopen(file,"r");
1.17 + ERROR( "Unable to load file '%s': %s", file, strerror(errno) );
1.20 fstat( fileno(f), &st );
1.21 if( length == 0 || length == -1 || length > st.st_size )
1.22 length = st.st_size;
1.23 @@ -266,13 +268,12 @@
1.25 void *mem_load_rom( char *file, uint32_t base, uint32_t size, uint32_t crc )
1.27 - char buf[512], *mem;
1.31 - snprintf( buf, 512, "%s/%s",BIOS_PATH, file );
1.32 - fd = open( buf, O_RDONLY );
1.33 + fd = open( file, O_RDONLY );
1.35 - ERROR( "Bios file not found: %s", buf );
1.36 + ERROR( "Bios file not found: %s", file );
1.39 mem = mmap( NULL, size, PROT_READ, MAP_PRIVATE, fd, 0 );