Ejemplo n.º 1
0
Archivo: SMS.c Proyecto: wally4000/code
int MenuPlusAction(int action, void* param)			{
	switch (action)			{
		case MA_LOADROM:
			if (systemInit)
			{
				machine_poweroff();
			}

			strcpy(menuConfig.file.filename, (char*)param);

			if(load_rom(menuConfig.file.filename) == 0) 
			{
				return 0;
			}

			if(systemInit)
			{
				if (gblMachineType == EM_SMS)			{
					sms_init();
					render_init();
					system_poweron();
				}
			}

			gblNewGame = 1;
			menuPlusTerminated = 1;
			menuConfig.video.pause = 0;
			break;
	}
	return 1;
}
Ejemplo n.º 2
0
static int do_poweroff(int argc, char ** argv)
{
	sync();

	if(machine_poweroff())
	{
		return 0;
	}
	else
	{
		printf(" The machine does not support 'poweroff'\r\n");
		return -1;
	}
}