Added missing files from last commit...
This commit is contained in:
parent
bd873de9ac
commit
522bc73a2a
2 changed files with 31 additions and 0 deletions
29
src/rom.c
Normal file
29
src/rom.c
Normal 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
2
src/rom.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
FILE *romfopen(char *fn, char *mode);
|
||||
int rom_present(char *fn);
|
||||
Loading…
Reference in a new issue