diff options
| author | 2010-12-04 13:29:12 +0000 | |
|---|---|---|
| committer | 2010-12-04 13:29:12 +0000 | |
| commit | bda71c1cd599ac84d8070c852af98ca7d0d19efe (patch) | |
| tree | a6d7a956d6f329ebb3945091a833f50e3698c55f | |
| parent | 135a1a9e08520a47f58c19a5acad819bf7112850 (diff) | |
Allowed the use of either decimal or hexadecimal values for <dataarea> size, <rom> size, and <rom> offset in software lists. [Curt Coder]
| -rw-r--r-- | src/emu/softlist.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/softlist.c b/src/emu/softlist.c index 43b37595f9e..88890acd323 100644 --- a/src/emu/softlist.c +++ b/src/emu/softlist.c @@ -513,7 +513,7 @@ static void start_handler(void *data, const char *tagname, const char **attribut { if ( swlist->softinfo ) { - UINT32 length = strtol( str_size, NULL, 10 ); + UINT32 length = strtol( str_size, NULL, 0 ); char *s = (char *)pool_malloc_lib(swlist->pool, ( strlen( str_name ) + 1 ) * sizeof(char) ); if ( !s ) @@ -607,8 +607,8 @@ static void start_handler(void *data, const char *tagname, const char **attribut { if ( str_size && str_offset ) { - UINT32 length = strtol( str_size, NULL, 10 ); - UINT32 offset = strtol( str_offset, NULL, 16 ); + UINT32 length = strtol( str_size, NULL, 0 ); + UINT32 offset = strtol( str_offset, NULL, 0 ); if ( str_loadflag && !strcmp(str_loadflag, "reload") ) { |
