Example #1
0
void main(void) {
	Supexec(link_in);
	
	printf("TrackVDI installed.\n");
	
	sprintf(data,"\r\n\r\nTrackVDI started.\r\n\r\n");
	sendstring(data);
	
	Ptermres((long)_base->p_dbase + _base->p_dlen - (long)_base->p_lowtpa,0);
}
Example #2
0
short main(void)
{
	/* Check that MiNT is actually installed */
	/* Tried to use mintlibs Getcookie, but failed */
	if (Ssystem(-1, 0, 0) == 0)
	{
		N_AESINFO *cook;
		
		if (Ssystem(S_GETCOOKIE, 'nAES', 0) == -1)
		{
			cook = Mxalloc(sizeof(*cook), MX_GLOBAL | MX_PREFTTRAM);
			if (!cook)
				Cconws("Not enough memory\r\n");
			else
			{
				memset(cook, 0, sizeof(*cook));
				Ssystem(S_SETCOOKIE, 'nAES', (long)cook);	
				Cconws("\r\n\r\nXA_CHEAT: fake 'nAES' cookie.\r\n");
				Cconws("The use of this program is completely\r\n");
				Cconws("at your own risc.\r\n");
				Cconws("Any program accessing the pointer in this\r\n");
				Cconws("cookie will crash hopelessly.\r\n");
				Cconws("So do not use any N.Aes utilities!!!\r\n");
				Cconws("\r\n");
				Cconws("\r\n'nAES' cookie now faked.\r\n\r\n");
				Ptermres(2048, 0);
			}
		}
		else
			Cconws("nAES cookie already exists\r\n");
	}
	else
	{
		Cconws("XaCHEAT requires MiNT\r\n");
		bios(2,2);
	}
	return 0;
}