mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 09:23:37 +00:00
CGE: Fix the remaining link errors. It now crashes instantly, most likely because of the VGA class
This commit is contained in:
parent
44cf1872e2
commit
1ebe182ba1
@ -363,5 +363,51 @@ long Timer(void) {
|
||||
warning("STUB: Timer");
|
||||
return 0;
|
||||
}
|
||||
|
||||
int new_random(int range) {
|
||||
warning("STUB: new_random(a)");
|
||||
return 0;
|
||||
}
|
||||
|
||||
#define TIMER_INT 0x08
|
||||
//void interrupt (* ENGINE::OldTimer) (...) = NULL;
|
||||
|
||||
ENGINE::ENGINE (uint16 tdiv)
|
||||
{
|
||||
/*
|
||||
// steal timer interrupt
|
||||
OldTimer = getvect(TIMER_INT);
|
||||
setvect(TIMER_INT, NewTimer);
|
||||
|
||||
// set turbo-timer mode
|
||||
asm mov al,0x36
|
||||
asm out 0x43,al
|
||||
asm mov ax,TMR_DIV
|
||||
asm out 0x40,al
|
||||
asm mov al,ah
|
||||
asm out 0x40,al
|
||||
*/
|
||||
warning("STUB: ENGINE::ENGINE");
|
||||
}
|
||||
|
||||
ENGINE::~ENGINE (void)
|
||||
{
|
||||
/*
|
||||
// reset timer
|
||||
asm mov al,0x36
|
||||
asm out 0x43,al
|
||||
asm xor al,al
|
||||
asm out 0x40,al
|
||||
asm out 0x40,al
|
||||
// bring back timer interrupt
|
||||
setvect(TIMER_INT, OldTimer);
|
||||
*/
|
||||
warning("STUB: ENGINE::~ENGINE");
|
||||
}
|
||||
|
||||
DATACK::~DATACK (void)
|
||||
{
|
||||
if (!e && Buf) free(Buf);
|
||||
}
|
||||
} // End of namespace CGE
|
||||
|
||||
|
@ -60,10 +60,6 @@ typedef struct {
|
||||
|
||||
typedef uint16 CRYPT(void *buf, uint16 siz, uint16 seed);
|
||||
|
||||
extern Common::RandomSource randSrc;
|
||||
|
||||
#define new_random(a) (randSrc.getRandomNumber(a))
|
||||
|
||||
class COUPLE {
|
||||
protected:
|
||||
signed char A;
|
||||
@ -237,7 +233,7 @@ char *dwtom(uint32 val, char * str, int radix, int len);
|
||||
int TakeEnum(const char **tab, const char *txt);
|
||||
Boot *ReadBoot(int drive);
|
||||
long Timer(void);
|
||||
|
||||
int new_random(int range);
|
||||
} // End of namespace CGE
|
||||
|
||||
#endif
|
||||
|
@ -905,7 +905,7 @@ static void SNMouse(bool on) {
|
||||
|
||||
void SNAIL::RunCom(void) {
|
||||
static int count = 1;
|
||||
extern void SwitchCave(int);
|
||||
// extern void SwitchCave(int);
|
||||
if (! Busy) {
|
||||
Busy = true;
|
||||
uint8 tmphea = Head;
|
||||
@ -971,7 +971,8 @@ void SNAIL::RunCom(void) {
|
||||
}
|
||||
break;
|
||||
case SNCAVE :
|
||||
SwitchCave(snc->Val);
|
||||
// SwitchCave(snc->Val);
|
||||
warning("Problematic call of SwitchCave in SNAIL::RunCom");
|
||||
break;
|
||||
case SNKILL :
|
||||
SNKill(sprel);
|
||||
|
Loading…
x
Reference in New Issue
Block a user