Various changes to FDC emulation.

Support for multiple disc image formats.
Added preliminary FDI support.
This commit is contained in:
TomW 2015-03-19 21:33:19 +00:00
commit a8159f8c09
20 changed files with 3797 additions and 393 deletions

View file

@ -354,6 +354,22 @@ void put_backslash(char *s)
s[c] = '/';
}
char *get_extension(char *s)
{
int c = strlen(s) - 1;
if (c <= 0)
return s;
while (c && s[c] != '.')
c--;
if (!c)
return &s[strlen(s)];
return &s[c+1];
}
void config_save(char *fn)
{
FILE *f = fopen(fn, "wt");