The model structure now uses a pointer to a function that returns the pointer to the device structure, rather than a pointer to the device structure directly.

This commit is contained in:
OBattler
2017-09-02 15:46:21 +02:00
parent c81e5af8a0
commit be16ee33ba
6 changed files with 36 additions and 13 deletions

View File

@@ -579,7 +579,7 @@ static device_config_t pcjr_config[] =
/*This isn't really a device as such - more of a convenient way to hook in the
config information*/
device_t pcjr_device =
static device_t pcjr_device =
{
"IBM PCjr",
0,
@@ -591,3 +591,8 @@ device_t pcjr_device =
NULL,
pcjr_config
};
device_t *pcjr_get_device(void)
{
return &pcjr_device;
}