aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Asset.cpp
blob: 3cbed0b5278df69d7ab904b4cdd242ea3da15723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <filesystem>

#include "Asset.h"

using namespace crepe;

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

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

const char * Asset::canonical() { return this->src.c_str(); }