/* -----------------------------------------------------------------------------
	GSFramework
	Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */


		#include "core/embedded_resource_handler_interface.h"
		#include "memory/nauto_ptr.h"

		using namespace GS::Core;


static GS::AutoPtr <IEmbeddedResourceHandler> embedded_resource_handler;

//------------------------------------------------------------------------------
IEmbeddedResourceHandler *IEmbeddedResourceHandler::Get()
{
	if	(embedded_resource_handler.IsNull())
		embedded_resource_handler = new IEmbeddedResourceHandler;
	return embedded_resource_handler.c_ptr();
}
void				IEmbeddedResourceHandler::Set(IEmbeddedResourceHandler *h)
{
	embedded_resource_handler = h;
}
//------------------------------------------------------------------------------
