1.1 --- a/src/mem.h Wed Nov 14 10:21:33 2007 +0000
1.2 +++ b/src/mem.h Thu Nov 29 09:28:28 2007 +0000
1.4 void *mem_create_ram_region( uint32_t base, uint32_t size, const char *name );
1.5 void *mem_create_repeating_ram_region( uint32_t base, uint32_t size, const char *name,
1.6 uint32_t repeat_offset, uint32_t last_repeat );
1.7 -void *mem_load_rom( const gchar *name, uint32_t base, uint32_t size, uint32_t crc,
1.8 - const gchar *region_name );
1.10 + * Load a ROM image from the specified filename. If the memory region has not
1.11 + * been allocated, it is created now, otherwise the existing region is reused.
1.12 + * If the CRC check fails, a warning will be printed.
1.13 + * @return TRUE if the image was loaded successfully (irrespective of CRC failure).
1.15 +gboolean mem_load_rom( const gchar *filename, uint32_t base, uint32_t size,
1.16 + uint32_t crc, const gchar *region_name );
1.17 void *mem_alloc_pages( int n );
1.18 sh4ptr_t mem_get_region( uint32_t addr );
1.19 sh4ptr_t mem_get_region_by_name( const char *name );