aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Resource.cpp
blob: a38900bfc3a868d4621270acd1c4fe79cac280e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "Resource.h"

using namespace crepe::api;

Resource::Resource(const std::string & src) : src(src) {
	this->file = std::ifstream(src, std::ios::in | std::ios::binary);
}

const std::istream & Resource::read() {
	return this->file;
}