示例#1
0
文件: lviv.cpp 项目: qwijibo/mame
SNAPSHOT_LOAD_MEMBER( lviv_state, lviv )
{
	std::vector<uint8_t> lviv_snapshot_data(LVIV_SNAPSHOT_SIZE);

	image.fread( &lviv_snapshot_data[0], LVIV_SNAPSHOT_SIZE);

	if (lviv_verify_snapshot(&lviv_snapshot_data[0], snapshot_size) != image_verify_result::PASS)
	{
		return image_init_result::FAIL;
	}

	lviv_setup_snapshot (&lviv_snapshot_data[0]);

	dump_registers();

	logerror("Snapshot file loaded\n");
	return image_init_result::PASS;
}
示例#2
0
文件: lviv.c 项目: macressler/mame
SNAPSHOT_LOAD_MEMBER( lviv_state, lviv )
{
	dynamic_buffer lviv_snapshot_data(LVIV_SNAPSHOT_SIZE);

	image.fread( &lviv_snapshot_data[0], LVIV_SNAPSHOT_SIZE);

	if(lviv_verify_snapshot(&lviv_snapshot_data[0], snapshot_size) == IMAGE_VERIFY_FAIL)
	{
		return IMAGE_INIT_FAIL;
	}

	lviv_setup_snapshot (&lviv_snapshot_data[0]);

	dump_registers();

	logerror("Snapshot file loaded\n");
	return IMAGE_INIT_PASS;
}