mirror of
https://github.com/holub/mame
synced 2025-05-20 20:58:51 +03:00
Allowed the use of either decimal or hexadecimal values for <dataarea> size, <rom> size, and <rom> offset in software lists. [Curt Coder]
This commit is contained in:
parent
135a1a9e08
commit
bda71c1cd5
@ -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") )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user