read_rom actually read from its fname param instead of global variable romFileName
This commit is contained in:
parent
1b70cc798b
commit
bf9af92b91
3 changed files with 3 additions and 3 deletions
|
@ -962,7 +962,7 @@ int read_mem_file( char* name, word_4* mem, int size ) {
|
|||
int read_rom( const char* fname ) {
|
||||
int ram_size;
|
||||
|
||||
if ( !read_rom_file( romFileName, &saturn.rom, &rom_size ) )
|
||||
if ( !read_rom_file( fname, &saturn.rom, &rom_size ) )
|
||||
return 0;
|
||||
dev_memory_init();
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
unsigned int opt_gx = 0;
|
||||
unsigned int rom_size = 0;
|
||||
|
||||
int read_rom_file( char* name, unsigned char** mem, unsigned int* size ) {
|
||||
int read_rom_file( const char* name, unsigned char** mem, unsigned int* size ) {
|
||||
struct stat st;
|
||||
FILE* fp;
|
||||
unsigned char* tmp_mem;
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
extern unsigned int opt_gx;
|
||||
extern unsigned int rom_size;
|
||||
|
||||
extern int read_rom_file( char* name, unsigned char** mem, unsigned int* size );
|
||||
extern int read_rom_file( const char* name, unsigned char** mem, unsigned int* size );
|
||||
|
||||
#endif /* !_ROMIO_H */
|
||||
|
|
Loading…
Add table
Reference in a new issue