#include "anki/resource/Script.h"
#include "anki/util/Filesystem.h"
#include "anki/util/Exception.h"

namespace anki {

//==============================================================================
void Script::load(const char* filename)
{
	source = readFile(filename);
	if(source.length() < 1)
	{
		throw ANKI_EXCEPTION("Cannot load script: " + filename);
	}
}

} // end namespace anki
