Various changes to FDC emulation.
Support for multiple disc image formats. Added preliminary FDI support.
This commit is contained in:
parent
37fe4a56be
commit
a8159f8c09
20 changed files with 3797 additions and 393 deletions
16
src/config.c
16
src/config.c
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue