//===========================================================================//
// File:	ErfExport.cpp                                                 
// Project: MechWarrior 4
// Contents: Plugin to adjust height of max anmiations
//---------------------------------------------------------------------------//
//   Date    Who  Modification                                               //
// --------  ---  ---------------------------------------------------------- //
// 04/28/99  JSE  Initial coding, 
//---------------------------------------------------------------------------//
// Copyright (C) 1998, Fasa Interactive, Inc.
// All Rights reserved worldwide
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL
//===========================================================================//


#include "stdafx.h"

#ifdef STRICT							// Already defined by stdafx,
#undef STRICT							// so we avoid warning linking msg
#endif
#ifdef _MBCS							// The same as above
#undef _MBCS
#endif

#include "ErfExport.h"
#include <GameOs\TooLOS.hpp>
#include <DLLPlatform\DLLPlatform.hpp>



//undef Verify

#ifndef _DEBUG						//This is a hack To make it link in Release
#undef Spew
//void Spew() {}
#endif


//===========================================================================//

int	ErfExp::DoExport(const TCHAR *name,ExpInterface *ei,Interface *i, BOOL suppressPrompts,DWORD options)
{	
	int return_value;
	__try
	{
		return_value = m_Expt.DoExportWrap(name, ei, i, suppressPrompts);
		//return_value = true;
		GetSystemSetting(SYSSET_CLEAR_UNDO);
		Verify(!theHold.Holding());
	}
	__except(ProcessException(GetExceptionInformation()))
	{
	}

	return return_value;
}


