ISA memory and RTC cards: Only enable the configure button if the device actually has a configuration structure present.

This commit is contained in:
OBattler
2024-06-08 04:35:29 +02:00
parent ec0287cd2f
commit f95b1d984d
5 changed files with 27 additions and 6 deletions

View File

@@ -2145,3 +2145,12 @@ isamem_get_device(int board)
/* Add the instance to the system. */
return boards[board].dev;
}
int
isamem_has_config(int board)
{
if (boards[board].dev == NULL)
return 0;
return (boards[board].dev->config ? 1 : 0);
}

View File

@@ -815,3 +815,12 @@ isartc_get_device(int board)
{
return (boards[board].dev);
}
int
isartc_has_config(int board)
{
if (boards[board].dev == NULL)
return 0;
return (boards[board].dev->config ? 1 : 0);
}