1.1 diff -r e5a92d7beecf -r a350dfa92895 src/state.c 1.2 --- a/src/state.c Sun Dec 05 16:18:50 2010 +0000 1.3 +++ b/src/state.c Sun Dec 05 16:20:00 2010 +0000 1.4 @@ -2,6 +2,7 @@ 1.5 #include <stddef.h> 1.6 #include <malloc.h> 1.7 #include <stdio.h> 1.8 +#include "wd279x.h" 1.9 #include "state.h" 1.10 1.11 int state_init(size_t ramsize) 1.12 @@ -60,6 +61,9 @@ 1.13 fclose(r14c); 1.14 fclose(r15c); 1.15 1.16 + // Initialise the disc controller 1.17 + wd2797_init(&state.fdc_ctx); 1.18 + 1.19 return 0; 1.20 } 1.21 1.22 @@ -69,6 +73,9 @@ 1.23 free(state.ram); 1.24 state.ram = NULL; 1.25 } 1.26 + 1.27 + // Deinitialise the disc controller 1.28 + wd2797_done(&state.fdc_ctx); 1.29 } 1.30 1.31