@Phibrizzo, post #2
@Phibrizzo, post #6
// prepare disabling/enabling CDTV device as per Alpine9000 code
// from https://eab.abime.net/showthread.php?t=89836
static void cdtvPortAlloc(void) {
if (!(s_pCdtvIOPort = msgPortCreate(NULL, ADALLOC_MAXPREC))) {
logWrite("ERR: Couldn't allocate message port for cdtv alloc\n");
return;
}
if (!(s_pCdtvIOReq = (struct IOStdReq *)ioRequestCreate(s_pCdtvIOPort, sizeof(struct IOStdReq)))) {
logWrite("ERR: Couldn't allocate io request for cdtv messages\n");
msgPortDelete(s_pCdtvIOPort);
s_pCdtvIOPort = NULL;
return;
}
if (OpenDevice((CONST_STRPTR)"cdtv.device", 0, (struct IORequest *) s_pCdtvIOReq, 0)) {
msgPortDelete(s_pCdtvIOPort);
s_pCdtvIOPort = NULL;
ioRequestDestroy((struct IORequest*)s_pCdtvIOReq);
s_pCdtvIOReq = NULL;
return;
}
}@slawekwozniak, post #11
Mnie ta gra trochę przypomina inną Polską perełkę z czasów Amigi - Lost in Mine
@Axi0maT, post #14