Added missing files from last commit...

This commit is contained in:
TomW 2013-11-05 11:02:25 +00:00
commit 522bc73a2a
2 changed files with 31 additions and 0 deletions

29
src/rom.c Normal file
View file

@ -0,0 +1,29 @@
#include <stdio.h>
#include "ibm.h"
#include "rom.h"
FILE *romfopen(char *fn, char *mode)
{
char s[512];
strcpy(s, pcempath);
put_backslash(s);
strcat(s, fn);
return fopen(s, mode);
}
int rom_present(char *fn)
{
FILE *f;
char s[512];
strcpy(s, pcempath);
put_backslash(s);
strcat(s, fn);
f = fopen(s, "rb");
if (f)
{
fclose(f);
return 1;
}
return 0;
}

2
src/rom.h Normal file
View file

@ -0,0 +1,2 @@
FILE *romfopen(char *fn, char *mode);
int rom_present(char *fn);