1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-10-30 21:26:54 +00:00

selected_drive will now have a default value (of drive1)

This commit is contained in:
Peter Evans 2018-01-27 21:53:12 -06:00
parent 2c3d6a4dfa
commit 33b44d1a70

View File

@ -57,6 +57,7 @@ apple2_create(int width, int height)
mach->screen = NULL;
mach->drive1 = NULL;
mach->drive2 = NULL;
mach->selected_drive = NULL;
// This is more-or-less the same setup you do in apple2_reset(). We
// need to hard-set these values because apple2_set_bank_switch
@ -109,6 +110,9 @@ apple2_create(int width, int height)
return NULL;
}
// By default, the selected drive should be drive1
mach->selected_drive = mach->drive1;
// Let's build our screen abstraction!
mach->screen = vm_screen_create();
if (mach->screen == NULL) {