mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-10 00:20:27 -04:00
game folder "just" compiles (not link)
This commit is contained in:
parent
13d3908273
commit
1b0f7fe0c2
135 changed files with 2161 additions and 2336 deletions
23
libs/errtest.c
Normal file
23
libs/errtest.c
Normal file
|
@ -0,0 +1,23 @@
|
|||
#include <dos.h>
|
||||
#include <bios.h>
|
||||
#include <stdio.h>
|
||||
#include <conio.h>
|
||||
#include <malloc.h>
|
||||
#include "doserr.h"
|
||||
|
||||
void *err_stack;
|
||||
|
||||
char err_proc(int error,char disk,char info)
|
||||
{
|
||||
cprintf("Device error %04X %c %03X \n\r",error,disk+'@',info);
|
||||
return 3;
|
||||
}
|
||||
|
||||
main()
|
||||
{
|
||||
FILE *f;
|
||||
|
||||
err_stack=malloc(16384);
|
||||
install_dos_error(err_proc,(char *)err_stack+16384);
|
||||
f=fopen("a:\test","r");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue